Quote:
Originally Posted by Inverness
Here is a little something I whipped together after my recent discovery.
|
Lovely.
I find this to work too:
PHP Code:
function varType(strName) {
with (new TStaticVar()) {
this.join("varType");
this.aname = strName;
return this;
}
}
function varType2(strName) {
with (varType(strName)) {
this.join("varType2");
return this;
}
}
Which solves the inheritance problems and retains the var = type() construction.