home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- 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
- From: pjl@sparc10.cs.uiuc.edu (Paul Lucas)
- Subject: Re: New C++ type: boole
- Message-ID: <1992Jul27.052651.3292@sunb10.cs.uiuc.edu>
- Sender: news@sunb10.cs.uiuc.edu
- Organization: University of Illinois at Urbana-Champaign
- References: <DOUGM.92Jul26151240@titan.cs.rice.edu>
- Date: Mon, 27 Jul 1992 05:26:51 GMT
- Lines: 25
-
- In <DOUGM.92Jul26151240@titan.cs.rice.edu> dougm@titan.cs.rice.edu (Doug Moore) writes:
-
- >Well, I am sorry for that. To many people, the idea that a pointer to
- >that character over there is also "true" and a pointer to no character
- >at all is also "false" is counter-intuitive. I don't claim to have
- >data to support the assertion that one set of intuitions is more
- >common than another.
-
- *****> Okay...one last time. Zero, in whatever form, is False;
- anything else is true. Any questions? :)
-
- Realistically, if someone (not you! This is *not* a personal
- flame...just thought I'd make that absolutely clear by explicity
- pointing this out) can't understand that or finds it counter-
- intuitive, I respectfully suggest another profession. There are
- *much harder* things to learn in computer science than this.
-
- One is the seductively slick, way cool things about C(++) is
- that you can write nice "tight" expressions without having the
- apron-strings of something like: if ( <expr> == TRUE ) --or--
- if ( ptr != 0 ) ... Please, don't take that away.
- --
- - Paul J. Lucas University of Illinois
- AT&T Bell Laboratories at Urbana-Champaign
- Naperville, IL pjl@cs.uiuc.edu
-