Article View: rec.games.programmer
Article #229Re: TP or C ? (was: Languages to program in and ports and blah and etc...)
From: Stuart Woolford
Date: Mon, 27 Jul 1992 21:57
Date: Mon, 27 Jul 1992 21:57
31 lines
1520 bytes
1520 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 )
> }
>The value is returned based on the condition. 0 if false, greater than zero
>(or just any non zero value?) if true.
Very true...but I was trying to make it simple for the Pascal people ;-)
( and I HATE ANSI headers !!!!!! )
-------------------------------------------------------------------------------
stuartw@ccu1.aukuni.ac.nz
>>>>UNIX - and PROUD of it<<<<
-------------------------------------------------------------------------------
Technical Details
Message-ID:
<1992Jul27.215704.28470@ccu1.aukuni.ac.nz>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!wupost!waikato.ac.nz!aukuni.ac.nz!stuartwReferences:
<l1hmxkp@lynx.unm.edu> <1992Jul27.005952.4167@ccu1.aukuni.ac.nz> <26JUL92211529@acad3.alaska.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!wupost!waikato.ac.nz!aukuni.ac.nz!stuartw Newsgroups: rec.games.programmer Subject: Re: TP or C ? (was: Languages to program in and ports and blah and etc...) Message-ID: <1992Jul27.215704.28470@ccu1.aukuni.ac.nz> From: stuartw@ccu1.aukuni.ac.nz (Stuart Woolford) Date: Mon, 27 Jul 1992 21:57:04 GMT References: <l1hmxkp@lynx.unm.edu> <1992Jul27.005952.4167@ccu1.aukuni.ac.nz> <26JUL92211529@acad3.alaska.edu> Organization: University of Auckland, New Zealand. Lines: 31