🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mod.computers.apollo
Article #227

Cautionary Warning

#227
From: Erstad
Date: Mon, 04 Aug 1986 14:20
9 lines
1024 bytes
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.
Technical Details
Message-ID: <860804142032.032289@HI-MULTICS.ARPA>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!HI-MULTICS.ARPA!Erstad

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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