I figured C++ used the short one, but was not 100% sure. Weirdly enough, I still code with short-circuit in mind (probably unconcious), but I do have a habit of doing things like
if(pPlayer)
{
if(pPlayer->Blah())
{
}
}Paranoia I guess :P
At 21:47 9/06/2003, you wrote:
[ Converted text/html to text/plain ]
Sometime I wonder just how well people know C++ before they start working with the SDK. Or even how long they've been using their compiler. >From: Jussi Kivilinna >Reply-To: [EMAIL PROTECTED] >To: >Subject: Re: [hlcoders] SDK line crashing linux servers >Date: Mon, 9 Jun 2003 12:32:16 +0300 (EEST) > >On Mon, 9 Jun 2003, Daniel Koppes wrote: > > > > I think it can depend on whether the compiler would use 'full' boolean > > logic (where all of a statement is evaluated, even if it's something simple > > like 1 && 0), or 'short circuit' (where the code will not evaluate further > > if it's obvious what the result will be, like 0 || 0) logic... I know > > Delphi (Object Pascal) can use either one, I'm sure C++ ones can too. > > > > As for sticking to a standard, since when has MS started doing that? > > > >full boolean logic was in old pascal standard that's why delphi has >option to switch in on. I have never seen it in C++ not even as >commandline option on any compiler (not even borland c++ compiler). > > >.----------------- > Jussi Kivilinna > http://jussikivilinna.cjb.net/ > > >_______________________________________________ >To unsubscribe, edit your list preferences, or view the list archives, please visit: >http://list.valvesoftware.com/mailman/listinfo/hlcoders >
------------------------------------------------------------------------------ MSN 8 helps ELIMINATE E-MAIL VIRUSES.[1] Get 2 months FREE*.
===References:=== 1. http://g.msn.com/8HMWENUS/2752??PS=
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
---------- Programmer and Modeller for <http://pokemod.fragoff.net/>The <http://pokemod.fragoff.net/>Pokemod
----------
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

