![]() |
Quote:
Good job for proving that both are the exact same amount of steps, and the same amount of work required by the applications. |
Quote:
function() returns true that's one step true is equivalent to true that's two steps function returns true that's one step When you do function() returns false false is equivalent to false that's two steps too also function() returns false the ! operator negates false to true. there's two steps However, you wouldn't know if the ! operator is faster than the == operator in gscript. But for true values there's more steps in comparison by ==true. |
Quote:
(Last post here, seriously) |
Quote:
|
Quote:
Quote:
Quote:
|
Alright well, you're just getting annoying so I will have to present some cold hard facts.
PHP Code:
PHP Code:
|
Quote:
Quote:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
ApothiX:
Listen man, I don't care if it's wrong or right, if it works or not. IT IS STUPID! if (onwall() == true) is exactly the same thing as if (true == true). If that is correct, why don't you continue to do: if ((((((onwall() == true) == true) == true) == true) == true) == true) It's the exact same thing. Silence. |
Quote:
Quote:
That is called wasting time, space and energy. Besides, it is not exactly the same since you are making the engine evaluate the statement six times. I do not think it will fold that down. |
This thread is getting stupid :x
|
Quote:
|
Quote:
Quote:
If you think that ((((true == true) == true) == true) == true) is a waste, then you must think the same about (onwall() == true) because that is like (true == true). In other words, he did: if (true == true) //Waste. instead of: if (true) //Not waste. Quote:
|
Quote:
|
Quote:
|
Topic is causing problems.
Closed. |
| All times are GMT +2. The time now is 11:23 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.