View Single Post
  #7  
Old 06-18-2007, 05:59 PM
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
e.g.,
PHP Code:
function varType(strName) {
  
with (new TStaticVar()) {
    
/* public: */
    
this.varType = function () {

    };
    
this.tname strName;
    
/* definitions */

    
if (this.varType != NULL)
      
this.varType();

    return 
this;
  }
}

function 
onCreated() {
  
temp.myvar varType("Jack");
  echo(
temp.myvar.tname);

Quote:
Originally Posted by Inverness View Post
This has nothing to do with custom object types. Stop trying to be cool -.-

You have no idea what I'm talking about.
This is exactly how you make custom object types in JavaScript.
So tell me, what do you want? Something wrapped in a useless macro?

And the array thing I typed up real fast and didn't catch until after I posted.
__________________
◕‿‿◕ · 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 :/

Last edited by Tolnaftate2004; 06-18-2007 at 06:10 PM..
Reply With Quote