View Single Post
  #16  
Old 06-21-2007, 10:02 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by Inverness View Post
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.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote