From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,df854b5838c3e14 X-Google-Attributes: gid1014db,public X-Google-Thread: 109fba,df854b5838c3e14 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,df854b5838c3e14 X-Google-Attributes: gid103376,public From: ok@goanna.cs.rmit.EDU.AU (Richard A. O'Keefe) Subject: Re: C/C++ knocks the crap out of Ada Date: 1996/02/27 Message-ID: <4gtvcr$bo0@goanna.cs.rmit.EDU.AU>#1/1 X-Deja-AN: 141295670 references: <00001a73+00002504@msn.com> <4etcmm$lpd@nova.dimensional.com> <312515DF.7D3B@cmlj.demon.co.uk> <4gad29$ddp@druid.borland.com> <4ggshe$7bk@goanna.cs.rmit.EDU.AU> <4gmp2o$ian@ux1.lmu.edu> <312FDB27.4B83@inav.net> organization: Comp Sci, RMIT, Melbourne, Australia newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ Date: 1996-02-27T00:00:00+00:00 List-Id: JR Crosmer asks about c++ >What is the status of the plain/ordinary/but very noticably forgotten boolean? Not forgotten. The 28 April 1995 draft lists bool false true as keywords. There are some oddities, notably that boolvar++; is defined to have the same effect as boolvar = true; which will not impress readers of comp.lang.ada. If you haven't already got them, then #define bool int #define false 0 #define true 1 will be a workable substitute (LC-lint already assumes this). A new header making these keywords available in C has been proposed for the revised C standard. The fundamental problem is that the mistakes a language _doesn't_ allow are almost as important as the good things it _does_ allow, and C and C++ have a lot of old code to be compatible with. This doesn't mean that strict checking is not possible, only that compilers are unlikely to do it by default. If only there were an LC-lint++ ... -- Election time; but how to get Labor _out_ without letting Liberal _in_? Richard A. O'Keefe; http://www.cs.rmit.edu.au/~ok; RMIT Comp.Sci.