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
[ 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
hmm, if pPlayer = NULL then you can´t do pPlayer-IsNetClient()..
- Original Message -
From: James Couzens [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 07, 2003 9:22 PM
Subject: [hlcoders] SDK line crashing linux servers
if (!pPlayer || !pPlayer-IsNetClient())
Why
If pPlayer is NULL, then !pPlayer will return true, in which case the
second part of the or statement will not get evaluated, so that's not the
problem.
Persuter
At 10:02 PM 6/8/2003 +0200, you wrote:
hmm, if pPlayer = NULL then you can´t do pPlayer-IsNetClient()..
- Original Message -
- Original Message -
From: Persuter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 08, 2003 22:28
Subject: Re: [hlcoders] SDK line crashing linux servers
If pPlayer is NULL, then !pPlayer will return true, in which case the
second part of the or statement will not get evaluated, so that's
No, the C++ specification is such that it always evaluates conditions
in a
lazy manner from left to right.
Persuter
How about, try it his way, and if it works, curse the specification?
--
MoD.
___
To unsubscribe, edit your list
: Sunday, June 08, 2003 6:43 PM
Subject: Re: [hlcoders] SDK line crashing linux servers
No, the C++ specification is such that it always evaluates conditions
in a
lazy manner from left to right.
Persuter
How about, try it his way, and if it works, curse the specification?
--
MoD
://unitedadmins.com/clanmod.php
UA LISTS: http://list.unitedadmins.com/mailman/listinfo
- Original Message -
From: MoD [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 08, 2003 6:43 PM
Subject: Re: [hlcoders] SDK line crashing linux servers
No, the C++ specification
- Original Message -
From: MoD [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 08, 2003 6:43 PM
Subject: Re: [hlcoders] SDK line crashing linux servers
No, the C++ specification is such that it always evaluates conditions
in a
lazy manner from left to right.
Persuter
How
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sat, Jun 07, 2003 at 12:22:19PM -0700, James Couzens wrote:
if (!pPlayer || !pPlayer-IsNetClient())
Why does this logic crash a linux dedicated server?
I'm assuming you're using MSVC on windows. If so, MSVC does not
evaluate boolean
--
[ Picked text/plain from multipart/alternative ]
At 06:01 PM 6/8/2003 -0400, you wrote:
On Sat, Jun 07, 2003 at 12:22:19PM -0700, James Couzens wrote:
Why does this logic crash a linux dedicated server?
I'm assuming you're using MSVC on windows.
I'm not quite sure that's a safe
I'd say the most likely explanation is indeed shimms' and hofer's
conjecture, i.e., that it has not been initialized. There is no serious
compiler that will not follow the left-to-right rule, that's a fairly
integral part of the C++ specification, which is used a lot (it's used
throughout the HL
Message-
From: [EMAIL PROTECTED] [mailto:hlcoders-
[EMAIL PROTECTED] On Behalf Of Persuter
Sent: June 8, 2003 11:52 PM
To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] SDK line crashing linux servers
At 03:32 PM 6/9/2003 +1200, you wrote:
I'd say the most likely explanation is indeed shimms
Excellent! This was frustrating me to no end. I've simply been trying to
tell if a player is connected or not. As you have indicated, when a player
disconnects, the pointer is still valid or not null. I'll stick the
FREE_PRIVATE(pClient) in the clientDisconnect function and see if it doesn't
14 matches
Mail list logo