Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!HI-MULTICS.ARPA!Erstad From: Erstad@HI-MULTICS.ARPA Newsgroups: mod.computers.apollo Subject: Cautionary Warning Message-ID: <860804142032.032289@HI-MULTICS.ARPA> Date: Mon, 4-Aug-86 10:20:00 EDT Article-I.D.: HI-MULTI.860804142032.032289 Posted: Mon Aug 4 10:20:00 1986 Date-Received: Wed, 6-Aug-86 02:04:49 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 9 Approved: apollo@yale-comix.arpa Regarding the PASCAL evaluation with "guards" on the IF clauses. Standard PASCAL (If there is such a beast) does not guarantee order of evalutaion. Any code which relies upon order of evaluation to work is certainly non-portable. DOMAIN Pascal does provide a solution: Use the IF x and then Y then construct. This aloso, of course, is non-portable. If you want portable, robust code the only option is to use the nested iff type of thing. Messy, but guaranteed.