Article View: rec.games.programmer
Article #213Re: TP or C ? (was: Languages to program in and ports and blah and etc...)
From: psrjd
Date: Mon, 27 Jul 1992 06:15
Date: Mon, 27 Jul 1992 06:15
35 lines
1607 bytes
1607 bytes
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 )
}
The value is returned based on the condition. 0 if false, greater than zero
(or just any non zero value?) if true.
>
>main()
> {
> if( Booltest(10,40) ) DoTheRealProgammerThing;
> }
>
>-------------------------------------------------------------------------------
>stuartw@ccu1.aukuni.ac.nz
>
> >>In VI Where Available<<
>-------------------------------------------------------------------------------
Ray J., PSRJD@ACAD2.ALASKA.EDU
Technical Details
Message-ID:
<26JUL92211529@acad3.alaska.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!raven.alaska.edu!acad3.alaska.edu!psrjdReferences:
<l1hmxkp@lynx.unm.edu> <1992Jul27.005952.4167@ccu1.aukuni.ac.nz>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!raven.alaska.edu!acad3.alaska.edu!psrjd From: psrjd@acad3.alaska.edu Newsgroups: rec.games.programmer Subject: Re: TP or C ? (was: Languages to program in and ports and blah and etc...) Message-ID: <26JUL92211529@acad3.alaska.edu> Date: 27 Jul 92 06:15:29 GMT References: <l1hmxkp@lynx.unm.edu> <1992Jul27.005952.4167@ccu1.aukuni.ac.nz> Sender: news@raven.alaska.edu (USENET News System) Reply-To: psrjd@acad3.alaska.edu Distribution: world Organization: University of Alaska - Fairbanks Lines: 35 Nntp-Posting-Host: acad3.alaska.edu