Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upHaxe implementation #132
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jasononeil
Jul 28, 2014
Contributor
I should note this will compile and run on JS, Java, C#, C++, PHP, Neko, Flash and if you're using the latest nightlies, Python.
If you would like to see generated files (or generated source code for any of these) let me know!
|
I should note this will compile and run on JS, Java, C#, C++, PHP, Neko, Flash and if you're using the latest nightlies, Python. If you would like to see generated files (or generated source code for any of these) let me know! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jasononeil
Jul 28, 2014
Contributor
Actually, this doesn't work on every platform. The use of "Dynamic" prevents the Haxe compiler for doing some checks on platforms that don't support optional arguments (the compiler usually fills in null values for you, but because we're using Dynamic it doesn't know to do that, causing run time errors). It works for some platforms but not for all. I'll try look for a more robust solution :)
|
Actually, this doesn't work on every platform. The use of "Dynamic" prevents the Haxe compiler for doing some checks on platforms that don't support optional arguments (the compiler usually fills in null values for you, but because we're using Dynamic it doesn't know to do that, causing run time errors). It works for some platforms but not for all. I'll try look for a more robust solution :) |
capicue
added
the
haxe
label
Jul 28, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Looks good to me |
jasononeil commentedJul 28, 2014
Live example:
http://try.haxe.org/#dD976
Does that parse? If it does I should also update the README I guess :)