GMLscripts.com

Discuss and collaborate on GML scripts
Invert

You are not logged in.

#1 2011-12-29 21:49:03

Daniel
Member
Registered: 2011-05-04
Posts: 25

[BUG] Functions can't be referenced. More of a piss-off than a bug

This one is just a piss-off, not really a bug.

Make a script, call it "waffle", have it be "return argument0"
Now do this:

Expandt = waffle
x = script_execute( t, 10 )

x will now equal 10, obviously. However, you can't directly reference a built-in function and this simply bugs me. You have to write stupid wrapper for everything.

Hello? Callbacks anybody? It's ridiculous that this isn't done properly, I should be able to make a variable that refers to any functions!

On top of that, and this is just wishful thinking, but this would be nice:

Expandhash_interface = sqrt
hashed_n = hash_interface(n)

IE, getting rid of that whole script_execute stage that is so annoying.

Offline

#2 2011-12-30 16:44:38

xot
Administrator
Registered: 2007-08-18
Posts: 1,239

Re: [BUG] Functions can't be referenced. More of a piss-off than a bug

I agree that not being about to access built-in functions by reference can be pretty annoying.


Abusing forum power since 1986.

Offline

Board footer

Powered by FluxBB