View Single Post
  #39  
Old 02-12-2010, 11:37 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by WhiteDragon View Post
No, you can definitely not call the function in the same line you define it, like so:
PHP Code:
temp.example = (function () {
  
temp.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.2;
  return 
temp.i*5;
})(); 
Like I said, not so pretty...
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote