home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!darwin.sura.net!mips!mips!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
- From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
- Subject: Re: boolean (was: Re: typedef vs enum)
- Message-ID: <1992Jul29.171251.29521@ucc.su.OZ.AU>
- Sender: news@ucc.su.OZ.AU
- Nntp-Posting-Host: extro.ucc.su.oz.au
- Organization: MAXTAL P/L C/- University Computing Centre, Sydney
- References: <23239@alice.att.com> <1992Jul20.032111.22387@ucc.su.OZ.AU> <RJBODKIN.92Jul27182159@lister.lcs.mit.edu>
- Date: Wed, 29 Jul 1992 17:12:51 GMT
- Lines: 19
-
- In article <RJBODKIN.92Jul27182159@lister.lcs.mit.edu> rjbodkin@theory.lcs.mit.edu (Ronald Bodkin) writes:
- >In article <1992Jul20.032111.22387@ucc.su.OZ.AU> maxtal@extro.ucc.su.OZ.AU (John MAX Skaller) writes:
- > NOW if you add f(bool), it gets called by preference.
- >
- > But then f(23) becomes f(TRUE), which might still cause
- >problems, as in:
- >int condition(int errno); // 0 = no error
- >int condition(bool ok); // TRUE = no error
- > Ron
-
- I dont understand. In my proposal, condition(int) is always called
- unless an expression of bool type is used. 23 is an int.
- The only problem is 'what is 0'? since it is not really an int,
- but an overloaded constant.
- --
- ;----------------------------------------------------------------------
- JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
-