home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.scheme
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!daffy!spock.cs.wisc.edu!quale
- From: quale@spock.cs.wisc.edu (Doug Quale)
- Subject: Re: applying or
- Message-ID: <1993Jan6.164736.10682@daffy.cs.wisc.edu>
- Sender: news@daffy.cs.wisc.edu (The News)
- Reply-To: quale@saavik.cs.wisc.edu
- Organization: University of Wisconsin -- Madison
- References: <1hsiocINN2v6@columbia.cs.ubc.ca> <1992Dec31.181545.19917@sharebase.com> <1993Jan5.165545.11990@neptune.inf.ethz.ch>
- Date: Wed, 6 Jan 1993 16:47:36 GMT
- Lines: 22
-
- In article <1993Jan5.165545.11990@neptune.inf.ethz.ch> marti@nugget.inf.ethz.ch (Robert Marti) writes:
- >
- >Pascal as described in the 1st ed. of Jensen & Wirth did indeed specify
- >that both the left _and_ right Boolean sub-expression of AND and OR must
- >_always_ be evaluated.
-
- Could you provide the page number that says this? This directly conflicts
- with my recollection that the User Manual and Report is completely silent
- on this issue. This is one of the Report's several bugs, but it was
- pretty good for its time.
-
- In a quick scan of the second edition (the one I had handy, but I can
- get the first edition from the library) I couldn't find anything. My
- understanding is that short-circuit evaluation is compatible with the
- requirements of the User Manual and Report, but is not required. Many
- early Pascal compilers didn't do short-circuit evaluation, and ultimately
- many used the CDC implementation from ETH as the final arbiter on the
- ambiguities in the definition. (This was clearly less than ideal.)
-
- --
- Doug Quale
- quale@saavik.cs.wisc.edu
-