home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / fortran / 4389 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.5 KB  |  40 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!draco.macsch.com!convex.is.macsch.com!dnl
  3. From: dnl@convex.is.macsch.com (David Lombard)
  4. Subject: Re: How does one return a logical value...???
  5. Message-ID: <1992Nov20.210324.3906@draco.macsch.com>
  6. Sender: usenet@draco.macsch.com (Usenet Poster)
  7. Organization: MacNeal-Schwendler Corp.
  8. References: <kf2iy2_00YUo8INXQF@andrew.cmu.edu> <BxzC1x.n0s@news.cso.uiuc.edu>
  9. Date: Fri, 20 Nov 92 21:03:24 GMT
  10. Lines: 28
  11.  
  12. In article <BxzC1x.n0s@news.cso.uiuc.edu> ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi) writes:
  13. >In article <kf2iy2_00YUo8INXQF@andrew.cmu.edu>, "Bruno W. Repetto" <br0w+@andrew.cmu.edu> writes:
  14. >
  15. >but now i was wondering why the writers of the standard 
  16. >defined these new operators, .EQV. and .NEQV.
  17. >to a first sight, it seems that overloading .EQ. and .NE. should be
  18. >possible: the compiler would select the operator by looking at the
  19. >operands.  Just as .GT. works for both integer and floats.
  20. >Yet, if they did it this way there is probably a good reason.
  21. >Does anybody know why?
  22. >
  23.  
  24. The following statement is fairly clear:
  25.  
  26.     IF( A.EQ.B .EQV. C.EQ.D ) ...
  27.  
  28. What would you do with this phantom?
  29.  
  30.     IF( A.EQ.B .EQ. C.EQ.D ) ...
  31.  
  32. Regards,
  33. DNL
  34.  
  35.                  MY_COMMENTS = MY_OPINIONS = NOBODY_ELSES;
  36.  
  37. David N. Lombard    The first thing we do,         The MacNeal-Schwendler Corp
  38. dnl@macsch.com      Let's kill all the lawyers.    815 Colorado Blvd
  39. (213) 259-4911      II Henry VI, IV.ii             Los Angeles, CA  90041
  40.