home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!tamsun.tamu.edu!snorkelwacker.mit.edu!ai-lab!life.ai.mit.edu!burley
- From: burley@apple-gunkies.gnu.ai.mit.edu (Craig Burley)
- Newsgroups: comp.lang.fortran
- Subject: Re: How does one return a logical value...???
- Date: 23 Nov 92 11:02:52
- Organization: Free Software Foundation 545 Tech Square Cambridge, MA 02139
- Lines: 32
- Message-ID: <BURLEY.92Nov23110252@apple-gunkies.gnu.ai.mit.edu>
- References: <kf2iy2_00YUo8INXQF@andrew.cmu.edu> <BxzC1x.n0s@news.cso.uiuc.edu>
- <1992Nov20.210324.3906@draco.macsch.com>
- <1emiqnINNrs1@talon.UCS.ORST.EDU>
- NNTP-Posting-Host: apple-gunkies.gnu.ai.mit.edu
- In-reply-to: pmontgom@math.orst.edu's message of 22 Nov 92 00:04:39 GMT
-
- In article <1emiqnINNrs1@talon.UCS.ORST.EDU> pmontgom@math.orst.edu (Peter Montgomery) writes:
-
- In article <1992Nov20.210324.3906@draco.macsch.com>
- dnl@convex.is.macsch.com (David Lombard) writes:
-
- >The following statement is fairly clear:
-
- > IF( A.EQ.B .EQV. C.EQ.D ) ...
-
- >What would you do with this phantom?
-
- > IF( A.EQ.B .EQ. C.EQ.D ) ...
-
-
- There is no ambiguity if A, B, C, D are all type logical,
- since logical equality is an associative operation
- (A .EQV. (B .EQV. C)) is equivalent to ((A .EQV. B) .EQV. C).
- If the operands are numeric, they can be paired off starting from the left.
-
- You apparently haven't been reading the thread, so your comment is not helpful.
-
- First of all, A, B, C, and D, are _not_ LOGICAL, else the example would be
- equivalent to
-
- IF( A.EQV.B .EQV. C.EQV.D ) ...
-
- Second of all, I doubt your claim of nonambiguity would hold up well if
- you replace, say, the second .EQ./.EQV. with .NE./.NEQV..
- --
-
- James Craig Burley, Software Craftsperson burley@gnu.ai.mit.edu
- Member of the League for Programming Freedom (LPF) lpf@uunet.uu.net
-