|
|
|
|
|
|
RetroX
|
|
Reply #21 Posted on: December 04, 2008, 04:43:26 pm |
|
|
Master of all things Linux
Location: US Joined: Apr 2008
Posts: 1055
|
It's very useful. It allows you to pass a script as a callback to an object or another script.
with (obj) { function(); }
|
|
|
Logged
|
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)Why do all the pro-Microsoft people have troll avatars?
|
|
|
|
|
|
Josh @ Dreamland
|
|
Reply #25 Posted on: December 06, 2008, 05:51:08 am |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
It's useless, all right.
switch function() { case 0: script0() case 1: script1() case 2: script2() }
That's the only piece of code it could replace.
I suppose execute_script would be easy enough to implement. So as soon as I see it on the request page, I'll do it. Ha
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|
Josh @ Dreamland
|
|
Reply #28 Posted on: December 06, 2008, 06:12:54 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Practically never.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|