Created
July 19, 2012 10:10
-
-
Save leosoto/3142855 to your computer and use it in GitHub Desktop.
This file contains 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
Object.prototype.new = (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) -> | |
new this(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) | |
class Point | |
constructor: (@x, @y) -> | |
toString: -> "(#{@x}, #{@y})" | |
alert String.new("hello") | |
alert Point.new(10, 10) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment