2 registered members (AndrewAMD, Ayumi),
838
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: the comparisons of if clauses are still executed completely
[Re: Vinous_Beret]
#328533
06/13/10 19:00
06/13/10 19:00
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
who the fuck are you to talk like this??
Wayan Sidney Sastrosatomo Just. Nice to meet you.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: the comparisons of if clauses are still executed completely
[Re: WretchedSid]
#328535
06/13/10 19:16
06/13/10 19:16
|
Joined: Jul 2004
Posts: 1,710
MMike
Serious User
|
Serious User
Joined: Jul 2004
Posts: 1,710
|
Just calm down.. ok if he did spam, he probably was not aware of your reaction... was some joke ok. let it be.
and besides im still figuring out what the poster said with "This behaviour leads into ugly if-else blocks with code duplication."
code duplication what he means? and how come it executes? was it supposed to stop on the first condition if ent!=NULL and not check the rest ..or is something different.. im just not getting.
I never though about such situations...
Last edited by MMike; 06/13/10 19:17.
|
|
|
Re: the comparisons of if clauses are still executed completely
[Re: Hummel]
#328546
06/13/10 21:00
06/13/10 21:00
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
I too am STILL waiting on the short-circuit evaluation to be implemented... I grow tired of using work-arounds like
void main() {
ENTITY* ent = NULL;
if(ent!=NULL) if(is(ent, FLAG1))
{
beep();
}
}
because there is some you just cant do...
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: the comparisons of if clauses are still executed completely
[Re: EvilSOB]
#328548
06/13/10 21:04
06/13/10 21:04
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
Serious User
|
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
Would like to have it too. Always need an extra IF-block for checking if an entity is valid v.v(tooo many brackets)
Greets Rackscha
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
Re: the comparisons of if clauses are still executed completely
[Re: Superku]
#328595
06/14/10 08:52
06/14/10 08:52
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
Expert
|
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
|