Article View: rec.games.programmer
Article #214Re: TP or C ? (was: Languages to program in and ports and blah and etc...)
From: n liu
Date: Mon, 27 Jul 1992 10:11
Date: Mon, 27 Jul 1992 10:11
32 lines
1303 bytes
1303 bytes
psrjd@acad3.alaska.edu writes:
>In article <1992Jul27.005952.4167@ccu1.aukuni.ac.nz>, stuartw@ccu1.aukuni.ac.nz (Stuart Woolford) writes...
>>well..I guess you beat C there.. in C you would have to go:
>>
>>int BoolTest(x, y)
>> int x, y;
>> {
>> if(x==y) /* or whatever... */
>> return 1; /* or use TRUE, with stdio included.. */
>> else
>> return 0; /* or use FALSE, '' */
>> }
>Not really. You could do this just as easily:
> int BoolTest ( int x, int y ) {
> return ( x==y )
> }
What about
#define BoolTest(a,b) ((a)==(b))
>>main()
>> {
>> if( BoolTest(10,40) ) DoTheRealProgammerThing;
>> }
>>
--
nyet@cco.caltech.edu
nyet@aerospace.aero.org
Technical Details
Message-ID:
<1992Jul27.101112.2343@cco.caltech.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!nntp-server.caltech.edu!nyetReferences:
<l1hmxkp@lynx.unm.edu> <1992Jul27.005952.4167@ccu1.aukuni.ac.nz> <26JUL92211529@acad3.alaska.edu>Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!nntp-server.caltech.edu!nyet From: nyet@cco.caltech.edu (n liu) Subject: Re: TP or C ? (was: Languages to program in and ports and blah and etc...) Message-ID: <1992Jul27.101112.2343@cco.caltech.edu> Sender: news@cco.caltech.edu Nntp-Posting-Host: mripc Organization: California Institute of Technology, Pasadena References: <l1hmxkp@lynx.unm.edu> <1992Jul27.005952.4167@ccu1.aukuni.ac.nz> <26JUL92211529@acad3.alaska.edu> Date: Mon, 27 Jul 1992 10:11:12 GMT Lines: 32