home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sdd.hp.com!elroy.jpl.nasa.gov!usc!srhqla!quest!kdq
- From: kdq@quest.UUCP (Kevin D. Quitt)
- Newsgroups: comp.lang.c
- Subject: Re: How to use 'return' in c?
- Message-ID: <7162TB3w165w@quest.UUCP>
- Date: Tue, 10 Nov 92 20:51:53 PST
- References: <1992Nov9.190838.3391@mksol.dseg.ti.com>
- Reply-To: srhqla!quest!kdq
- Organization: Job quest (805) 251-8210, So Cal: (800) 400-8210
- Lines: 21
-
- mccall@mksol.dseg.ti.com (fred j mccall 575-3539) writes:
-
- > In <gm5XTB3w165w@quest.UUCP> kdq@quest.UUCP (Kevin D. Quitt) writes:
- > > On the other hand, since C does not truly support the boolean type,
- > >I consider it misleading to assign a numeric value to a boolean. I
- > >define TRUE as (1==1) because the result of this is a boolean - the
- > >fact that it is represented by a numerical value is misleading.
- >
- > No, the result of this is *1*. If it is anything else, your compiler
- > is seriously broken.
-
- No, the result is *represented* by a 1. "1" is not a boolean value.
- TRUE is a boolean value that requires a numeric definition because of
- the limitations of the language. Other languages have booleans and do
- not allow assigning numeric values to booleans. (On the other hand,
- most of *those* languages are otherwise so broken as not warrant their
- use.)
-
-
- _
- Kevin D. Quitt 96.37% of all statistics are made up. srhqla!quest!kdq
-