View Single Post
  #17  
Old 06-21-2007, 02:04 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Tolnaftate2004 View Post
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.
__________________
Do it with a DON!
Reply With Quote