| Issue 16: | Need explicit "{ }" in functions. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
New issue 64 by aboutwhat0: Plattform inconsistency https://code.google.com/p/haxe/issues/detail?id=64 What steps will reproduce the problem? Minimal Setup: class Test { public static var add = function (x, y) return x + y; public static function main () { trace(add(2, 2)); } } works on neko and js, fails to compile for cpp, produces a runtime error on flash. cpp compilation error: ------------------------------------------------------------- ./src/Test.cpp(29) : error C2143: syntax error : missing ';' before 'return' ./src/Test.cpp(29) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
Jul 25, 2010
Project Member
#1
gameh...@gmail.com
Status:
Fixed
|