Topic: What may the "bool" class look like?


Author: mharriso@elm101.dsccc.com (Mark Harrison)
Date: 14 Mar 1994 15:34:11 GMT
Raw View
1.  What is the proposed definition of the new bool class?

2.  Is this kind of information (proposals, etc) readily availible anywhere?

Many thanks in advance...
Mark.

--
mharriso@spd.dsccc.com   Mark Harrison
         ^^^^ NEW ADDRESS!  Switching Product Division,
     DSC Communications Corp.
also at: mharriso@utdallas.edu  (214)519-6517




Author: grumpy@cbnewse.cb.att.com (Paul J Lucas)
Date: Tue, 15 Mar 1994 04:37:14 GMT
Raw View


Author: dag@control.lth.se (Dag Bruck)
Date: 15 Mar 1994 06:27:34 GMT
Raw View
>>>>> On 14 Mar 1994 15:34:11 GMT, mharriso@elm101.dsccc.com (Mark Harrison) said:
>> 1.  What is the proposed definition of the new bool class?

The new type "bool" is a built-in integral type, not a class.

I suggest you use the following definitions until your compiler gets a
real bool type:

 typedef int bool;
 const bool false = 0;
 const bool true = 1;

You won't get any overloading, but most other things work ok.

    -- Dag




Author: maxtal@physics.su.OZ.AU (John Max Skaller)
Date: Wed, 16 Mar 1994 05:00:44 GMT
Raw View
In article <2m205j$k6i@sun001.dsccc.com> mharriso@elm101.dsccc.com (Mark Harrison) writes:
>1.  What is the proposed definition of the new bool class?

 There is no new bool class. Its a new builtin type.

>
>2.  Is this kind of information (proposals, etc) readily availible anywhere?
>