Quote:
Originally Posted by Stefan
You can also do this, but keep care to add a semicolon behind the function declaration:
PHP Code:
this.func = function() { echo("nameless function"); };
|
Function prototypes! One of the best additions yet by far.
Wondering if it would be possible to have
this.foo = public function () also, or something similar. Defining functions using this method in a TStaticVar results in a function inaccessible error in RC. Currently it is a bit of a pain to have to define a public function and copy it, if the functions you are defining are different for each object.