Mirage Engine
"Short-circuit evalution" in VB6 - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: "Short-circuit evalution" in VB6 (/showthread.php?tid=1472)



Re: "Short-circuit evalution" in VB6 - Rezeyu - 24-12-2007

I do this too, wasn't sure if it would speed up anything, I just did it for organizational purposes.


Re: "Short-circuit evalution" in VB6 - Robin - 24-12-2007

DFA Wrote:yeah, actually a pretty important optimization in my opinion

Hardly.

The time it takes to do the checks is negligible.

If you wanted to sort out the packet system, you'd convert to byte arrays.


Re: "Short-circuit evalution" in VB6 - Robin - 24-12-2007

That's like asking why Booleans exist when you can store the same value in a Byte.


Re: "Short-circuit evalution" in VB6 - Robin - 24-12-2007

Yet it exists in VB6.0 as a few bytes.

Stop asking questions about why different things are there in the language, we can only speculate. xD


Re: "Short-circuit evalution" in VB6 - Robin - 24-12-2007

Hahahaha xD




Re: "Short-circuit evalution" in VB6 - Dragoons Master - 25-12-2007

That's very common in C based languages, if(function()){ } and the oposite if(!function()){ } which is the same as If Not function Then