Issue 31: {} for while/switch, ( ) for if/else
Status:  Fixed
Owner:
Closed:  Jul 2010
Project Member Reported by gameh...@gmail.com, Jul 11, 2010
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
This has been fixed on haxe SVN
Status: Fixed