On the GML side: open() creates a struct, callback() assigns a callback to that struct, and close() drops the reference to the struct.
In order to get the callback to execute in the intended scope, which would be the created struct, I'd need to call .setSelf() and/or .setGlobals() on the method that Catspeak passes into the bound GML function for callback().
However, this is not possible as it seems like the returned method lacks the necessary setter methods for itself.
Consider
On the GML side:
open()
creates a struct,callback()
assigns a callback to that struct, andclose()
drops the reference to the struct.In order to get the callback to execute in the intended scope, which would be the created struct, I'd need to call
.setSelf()
and/or.setGlobals()
on the method that Catspeak passes into the bound GML function forcallback()
.However, this is not possible as it seems like the returned method lacks the necessary setter methods for itself.