Skip to content

Instantly share code, notes, and snippets.

@caasi
Created June 16, 2012 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caasi/2941152 to your computer and use it in GitHub Desktop.
Save caasi/2941152 to your computer and use it in GitHub Desktop.
imagination in action
f = () {
return (name) {
@@kind = "O";
@kind = () {
return __kind;
};
@name = name || "anonymous";
return $;
};
};
o = f()();
cls = f();
p = cls();
o.x = 10;
p.x = 20;
log("o.kind(): " + o.kind());
log("o.x: " + o.x);
log("p.kind(): " + p.kind());
log("p.x: " + p.x);​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment