| Issue 31: | {} for while/switch, ( ) for if/else | |
| 1 person starred this issue and may be notified of changes. | Back to list |
I've found two syntax variations that succesfully compile to Neko but not to
C++:
1. switch following while without using curly braces:
while (something) switch (foo) {
case bar: break;
}
workaround:
while (something) {
switch (foo) {
case bar: break;
}
}
2. order of execution when concatenating "if / else" results. cpp.io.Path
doesn't compile because of this. It's in the toString method:
if( dir == null ) "" else dir + if( backslash ) "\\" else "/"
workaround:
if( dir == null ) "" else dir + (if( backslash ) "\\" else "/")
Jul 19, 2010
Project Member
#1
gameh...@gmail.com
Status:
Fixed
|