home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.scheme
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!data!hultquis
- From: hultquis@wk206.nas.nasa.gov (Jeff P. M. Hultquist)
- Subject: Re: applying or
- In-Reply-To: manis@cs.ubc.ca's message of 30 Dec 1992 08:29:00 -0800
- References: <PK.92Dec28100620@talitiainen.cs.tut.fi>
- <HULTQUIS.92Dec28102345@wk206.nas.nasa.gov>
- <MOB.92Dec30090646@strident.think.com>
- <1hsiocINN2v6@columbia.cs.ubc.ca>
- Sender: news@nas.nasa.gov (News Administrator)
- Organization: NASA Ames Research Center, CA USA
- Date: 30 Dec 92 16:11:12
- Message-ID: <HULTQUIS.92Dec30161112@wk206.nas.nasa.gov>
- Reply-To: hultquis@nas.nasa.gov
- Lines: 30
-
-
- In article <1hsiocINN2v6@columbia.cs.ubc.ca> manis@cs.ubc.ca (Vincent Manis) 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.
- > >Would some programming language cogniscenti be kind enough to name a few?
- >
- > ISO Pascal, for one. Ada, for another (Ada has both McCarthy and
- > `operator' booleans: I think the former is written `and then', and the
- > latter just as `and').
-
-
- ADA:
- V.Manis is correct; AND does not short-circuit.
- The short-circuiting operators are "AND THEN" and "OR ELSE"
-
- FORTRAN-77:
- The .AND. and .OR. logical operands do not short-circuit.
-
- The vanilla AND and OR are bitwise instrinsic functions.
- They do not short-circuit either. :-)
-
- PostScript:
- The operands must be INT or BOOL, so the question is moot.
- --
- Jeff Hultquist hultquis@nas.nasa.gov
- NASA - Ames Research Center (415) 604-4970
-