home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / scheme / 2842 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.7 KB  |  47 lines

  1. Newsgroups: comp.lang.scheme
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!data!hultquis
  3. From: hultquis@wk206.nas.nasa.gov (Jeff P. M. Hultquist)
  4. Subject: Re: applying or
  5. In-Reply-To: manis@cs.ubc.ca's message of 30 Dec 1992 08:29:00 -0800
  6. References: <PK.92Dec28100620@talitiainen.cs.tut.fi>
  7.     <HULTQUIS.92Dec28102345@wk206.nas.nasa.gov>
  8.     <MOB.92Dec30090646@strident.think.com>
  9.     <1hsiocINN2v6@columbia.cs.ubc.ca>
  10. Sender: news@nas.nasa.gov (News Administrator)
  11. Organization: NASA Ames Research Center, CA USA
  12. Date: 30 Dec 92 16:11:12
  13. Message-ID: <HULTQUIS.92Dec30161112@wk206.nas.nasa.gov>
  14. Reply-To: hultquis@nas.nasa.gov
  15. Lines: 30
  16.  
  17.  
  18. In article <1hsiocINN2v6@columbia.cs.ubc.ca> manis@cs.ubc.ca (Vincent Manis) writes:
  19. >
  20. > In article <MOB.92Dec30090646@strident.think.com> mob@strident.think.com
  21. > (Mario O. Bourgoin) writes: 
  22. > >    
  23. > >I am at a loss for naming an existing programming language that has AND and
  24. > >OR and where they do not have the same behavior as they do in Scheme.
  25. > >Would some programming language cogniscenti be kind enough to name a few?
  26. >
  27. > ISO Pascal, for one. Ada, for another (Ada has both McCarthy and
  28. > `operator' booleans: I think the former is written `and then', and the
  29. > latter just as `and'). 
  30.  
  31.  
  32. ADA:
  33.     V.Manis is correct; AND does not short-circuit.
  34.     The short-circuiting operators are "AND THEN" and "OR ELSE"
  35.  
  36. FORTRAN-77: 
  37.     The .AND. and .OR. logical operands do not short-circuit. 
  38.  
  39.     The vanilla AND and OR are bitwise instrinsic functions.
  40.     They do not short-circuit either.  :-)
  41.  
  42. PostScript:
  43.     The operands must be INT or BOOL, so the question is moot.
  44. --
  45. Jeff Hultquist                          hultquis@nas.nasa.gov
  46. NASA - Ames Research Center             (415) 604-4970
  47.