View Single Post
  #1  
Old 06-18-2007, 05:32 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
Define your own variable types

PHP Code:
function varType(argsv[]) {
  
with (new TStaticVar()) {
    
/* public: */
    
this.varType = function () {

    };

    
/* definitions */

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

    return 
this;
  }

This is a pretty bare-bones C++-style "class". The function I've defined is the constructor. Have fun, and maybe Inver will stop complaining. :P Also, argsv[] is just a placeholder (typically seen in C) for any sorts of parameters you'd want to pass to these "classes".
__________________
◕‿‿◕ · 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 05:58 PM..
Reply With Quote