Pastebin
Paste #2220: No description
< previous paste - next paste>
Pasted by chrivers
var Y = function (foo) {
this.foo = foo;
};
Y.prototype.plink = function () {
print("This is a Y object with value", this.foo);
};
Y.prototype.__getattr__ = function (key) {
return this[key];
};
var y = new Y(42);
y.plink();
y.__getattr__("plink")();
New Paste
Go to most recent paste.