Created
February 23, 2013 09:14
-
-
Save jdickey/5019085 to your computer and use it in GitHub Desktop.
Output from compiling example CoffeeScript source, showing that classes cannot be reopened as in JS and Ruby: they're "just" variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated by CoffeeScript 1.4.0 | |
(function() { | |
var A, a; | |
A = (function() { | |
function A() { | |
this.a = 1; | |
} | |
return A; | |
})(); | |
A = (function() { | |
function A() {} | |
A.prototype.foo = function() { | |
return this.a; | |
}; | |
return A; | |
})(); | |
a = new A(); | |
a.foo(); | |
}).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment