Quote:
Originally Posted by Tolnaftate2004
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.
|
I don't like how your class names and function names are the same.
