home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11622 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.3 KB  |  30 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!csus.edu!netcomsv!mork!nagle
  3. From: nagle@netcom.com (John Nagle)
  4. Subject: Re: New C++ type: boole
  5. Message-ID: <n2lm22_.nagle@netcom.com>
  6. Date: Mon, 27 Jul 92 18:11:18 GMT
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. References: <DOUGM.92Jul26151240@titan.cs.rice.edu> <9220912.7004@mulga.cs.mu.OZ.AU>
  9. Lines: 19
  10.  
  11. fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON) writes:
  12. >>Programmers in Fortran have no conceptual
  13. >>problem with .TRUE.  
  14.  
  15. >.TRUE. is fine
  16.  
  17.       FORTRAN uses constructs like ".GT." and ".TRUE." because when John
  18. Backus was designing the language in 1954, nobody knew how to break up
  19. a line into lexical tokens, and there was much confusion over whether
  20. one could write "I=1" or had to write "I = 1".  The solution chosen
  21. was to completely ignore spaces in FORTRAN statements.  This resulted
  22. in some rather wierd syntax as the language was extended, because
  23. any syntax that could result in two words in sequence had to be 
  24. parseable with no space or delimiter between the words.  Hence,
  25. ".GT." and ".TRUE.", so that "I.GT.J" was parsable.
  26.  
  27.       But it's not a good rationale for using wierd syntax in a modern design.
  28.  
  29.                     John Nagle
  30.