![]() |
A "?" question
Question:
how is the function "?" used, and what is it used for? i know its something like "a ? a : b" but i still dont understand what to use it for someone please help thanks |
I noticed Stefan uses them alot when setting the dir for the bomys. I personally have never used them other than testing how it works.
|
Quote:
|
lol kaimetsu...
|
In many languages, "a ? b : c;" functions faster than
if (a) {b;} else {c;} because of processor-specific compiling, even in byte code languages like Java. Does this hold true in GraalScript? |
kai, think ya could gimme an example?
|
kyle0654 scripted bomies =.= antago was never good enough to do something like that
|
thanks kai i get it now ;)
|
Quote:
|
Quote:
|
kyle scripted the classic version, showimg and stuff, and Stefan made the 2k1 one. I do not believe there is any of kyle's code in that one.
|
Quote:
|
Quote:
|
Quote:
[/gloating] |
i still dont get what's wrong with
if(blah){} else{} |
Quote:
Programmers will go through great complications and lengths to save typing a character or two. Good example is c++ |
| All times are GMT +2. The time now is 02:55 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.