Quote:
Originally Posted by WhiteDragon
No, you can definitely not call the function in the same line you define it, like so:
PHP Code:
temp.example = (function () {
temp.i = 2;
return temp.i*5;
})();
That would fail. I'm pretty sure this is a result of YACC not truly treating functions (and other structures such as arrays) as first-class, when they should be and would make the grammar considerably less complex that whatever is currently there, most likely.
|
PHP Code:
temp.example = (temp.suckawhat = function () {
temp.i = 2;
return temp.i*5;
})();
Like I said, not so pretty...