home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.scheme
- Path: sparky!uunet!mcsun!chsun!bernina!neptune!nugget.inf.ethz.ch!marti
- From: marti@nugget.inf.ethz.ch (Robert Marti)
- Subject: Re: applying or
- Message-ID: <1993Jan5.165545.11990@neptune.inf.ethz.ch>
- Sender: news@neptune.inf.ethz.ch (Mr News)
- Nntp-Posting-Host: nugget.inf.ethz.ch
- Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH), Zurich, CH
- References: <PK.92Dec28100620@talitiainen.cs.tut.fi> <HULTQUIS.92Dec28102345@wk206.nas.nasa.gov> <MOB.92Dec30090646@strident.think.com> <1hsiocINN2v6@columbia.cs.ubc.ca> <1992Dec31.181545.19917@sharebase.com>
- Date: Tue, 5 Jan 1993 16:55:45 GMT
- Lines: 29
-
- In article <1992Dec31.181545.19917@sharebase.com>, dyer@airplane.sharebase.com
- (Scot Dyer) writes:
- |> In article <MOB.92Dec30090646@strident.think.com> mob@strident.think.com
- |> (Mario O. Bourgoin) writes:
- |> > I am at a loss for naming an existing programming language that has AND
- |> > and OR and where they do not have the same behavior as they do in Scheme.
- |>
- |> I don't believe any of these languages guarantee that all the sub-
- |> expressions will be evaluated*.
- [ ... ]
- |> * except ISO Pascal which I know squat about. It would be wirthian to
- |> provide a "clean operator" (and damn the awkwardness that _everything_
- |> can't be an "operator!")
-
- 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. I don't know about ISO Pascal, though. Moreover,
- to the best of my knowledge, Niklaus Wirth did not take part in the ISO
- Pascal standardization.
-
- Modula-2, designed by Niklaus Wirth in 1978 as a successor to Pascal,
- specified "short-circuit" AND and OR. The same is true for Modula-2's
- successor Oberon, also designed by Niklaus Wirth.
-
- --
- Robert Marti | Phone: +41 1 254 72 60
- Informationssysteme | FAX: +41 1 262 39 73
- ETH-Zentrum | E-Mail: marti@inf.ethz.ch
- CH-8092 Zurich, Switzerland |
-