Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcnc!ece-csc!ncrcae!ncr-sd!hp-sdd!hplabs!ucbvax!portofix.liu.se!kjepo From: kjepo@portofix.liu.se (Kjell Post) Newsgroups: comp.laser-printers Subject: for-loops in Pic ??? Message-ID: <8706241917.AA14249@brillig.umd.edu> Date: Sat, 20-Jun-87 13:42:36 EDT Article-I.D.: brillig.8706241917.AA14249 Posted: Sat Jun 20 13:42:36 1987 Date-Received: Fri, 26-Jun-87 06:35:32 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: CIS Dept, Univ of Linkoping, Sweden Lines: 24 Keywords: pic Approved: laser-lovers@brillig.umd.edu Reading an article about Unix formatting and typesetting in IEEE software (Sept 86), I stumbled on the following piece of pic-code: .PS h = 2.0; y = 0.5; x = 0.5; n = 10; H: line right h L1: line up y from H.end L2: line down y from H.end for i = 0 to n do { line right x from i/n < L1.end, L2.end> } .PE What's this? A cruel hoax? I've never seen for-loops in pic before and they are certainly not defined in the grammar specification. -- ----------------------------------------------------------------------------- "The nice thing about standards is that you have so many to choose from" Dept of Computer & Info Science ...liuida!majestix.liu.se!kjepo Univ of Linkoping, Sweden (kjepo@majestix.liu.se)