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

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!sunb10.cs.uiuc.edu!sparc10.cs.uiuc.edu!pjl
  3. From: pjl@sparc10.cs.uiuc.edu (Paul Lucas)
  4. Subject: Re: New C++ type: boole
  5. Message-ID: <1992Jul27.052651.3292@sunb10.cs.uiuc.edu>
  6. Sender: news@sunb10.cs.uiuc.edu
  7. Organization: University of Illinois at Urbana-Champaign
  8. References: <DOUGM.92Jul26151240@titan.cs.rice.edu>
  9. Date: Mon, 27 Jul 1992 05:26:51 GMT
  10. Lines: 25
  11.  
  12. In <DOUGM.92Jul26151240@titan.cs.rice.edu> dougm@titan.cs.rice.edu (Doug Moore) writes:
  13.  
  14. >Well, I am sorry for that.  To many people, the idea that a pointer to
  15. >that character over there is also "true" and a pointer to no character
  16. >at all is also "false" is counter-intuitive.  I don't claim to have
  17. >data to support the assertion that one set of intuitions is more
  18. >common than another.
  19.  
  20. *****>    Okay...one last time.  Zero, in whatever form, is False;
  21.     anything else is true.  Any questions?  :)
  22.  
  23.     Realistically, if someone (not you!  This is *not* a personal
  24.     flame...just thought I'd make that absolutely clear by explicity
  25.     pointing this out) can't understand that or finds it counter-
  26.     intuitive, I respectfully suggest another profession.  There are
  27.     *much harder* things to learn in computer science than this.
  28.  
  29.     One is the seductively slick, way cool things about C(++) is
  30.     that you can write nice "tight" expressions without having the
  31.     apron-strings of something like: if ( <expr> == TRUE ) --or--
  32.     if ( ptr != 0 ) ... Please, don't take that away.
  33. -- 
  34.     - Paul J. Lucas                University of Illinois    
  35.       AT&T Bell Laboratories        at Urbana-Champaign
  36.       Naperville, IL            pjl@cs.uiuc.edu
  37.