Pastebin

Paste #2220: No description

< previous paste - next paste>

Pasted by chrivers

Download View as text

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


Do not write anything in this field if you're a human.

Go to most recent paste.