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
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.