home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / scheme / 2866 < prev    next >
Encoding:
Text File  |  1993-01-05  |  2.0 KB  |  42 lines

  1. Newsgroups: comp.lang.scheme
  2. Path: sparky!uunet!mcsun!chsun!bernina!neptune!nugget.inf.ethz.ch!marti
  3. From: marti@nugget.inf.ethz.ch (Robert Marti)
  4. Subject: Re: applying or
  5. Message-ID: <1993Jan5.165545.11990@neptune.inf.ethz.ch>
  6. Sender: news@neptune.inf.ethz.ch (Mr News)
  7. Nntp-Posting-Host: nugget.inf.ethz.ch
  8. Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH), Zurich, CH
  9. 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>
  10. Date: Tue, 5 Jan 1993 16:55:45 GMT
  11. Lines: 29
  12.  
  13. In article <1992Dec31.181545.19917@sharebase.com>, dyer@airplane.sharebase.com
  14. (Scot Dyer) writes:
  15. |> In article <MOB.92Dec30090646@strident.think.com> mob@strident.think.com
  16. |> (Mario O. Bourgoin) writes:
  17. |> > I am at a loss for naming an existing programming language that has AND
  18. |> > and OR and where they do not have the same behavior as they do in Scheme.
  19. |>
  20. |> I don't believe any of these languages guarantee that all the sub-
  21. |> expressions will be evaluated*.
  22. [ ... ]
  23. |> * except ISO Pascal which I know squat about.  It would be wirthian to
  24. |> provide a "clean operator" (and damn the awkwardness that _everything_
  25. |> can't be an "operator!")
  26.  
  27. Pascal as described in the 1st ed. of Jensen & Wirth did indeed specify
  28. that both the left _and_ right Boolean sub-expression of AND and OR must
  29. _always_ be evaluated.  I don't know about ISO Pascal, though.  Moreover,
  30. to the best of my knowledge, Niklaus Wirth did not take part in the ISO
  31. Pascal standardization.
  32.  
  33. Modula-2, designed by Niklaus Wirth in 1978 as a successor to Pascal,
  34. specified "short-circuit" AND and OR.  The same is true for Modula-2's
  35. successor Oberon, also designed by Niklaus Wirth.
  36.  
  37. -- 
  38. Robert Marti                    |  Phone:    +41 1 254 72 60
  39. Informationssysteme             |  FAX:      +41 1 262 39 73
  40. ETH-Zentrum                     |  E-Mail:   marti@inf.ethz.ch
  41. CH-8092 Zurich, Switzerland     |
  42.