Quote:
Originally Posted by Inverness
If you return in a with() block crazy stuff happens.
|
This is true, but I meant that dynamic functions are treated more like inline functions.
PHP Code:
//#CLIENTSIDE
function onCreated() {
temp.var = new TStaticVar();
with (temp.var) {
this.test_func = function () {
echo("I win!");
};
}
temp.var.test_func(); // Doesn't work
}