if() and goto in On Topic
Are if() and goto procs or not? The DM reference says they are and I agree. Some other people seem to disagree though. I'd really like definitive points rather than opinions.
You're writing a programming language, and you need to add if. Do you make it a function, with function-like attributes, or do you make it a statement, with statement-like attributes? The latter is true.
Now, the if itself is an actual statement which translates to: "condition == True." However, it's slightly more advanced, because it also determines what to execute next.
The if itself just judges the statement, then the program figures out which to execute next: true_stmt or false_stmt.
Are if() and goto procs or not? The DM reference says they are and I agree. Some other people seem to disagree though.
if (this=that, truevalue, falsevalue)
(There's an odd one for you: spawn() is a statement, but sleep() is a proc.)
Of course, "scripters" are not *REALLY* programmers to the T