greg-dove commented on issue #104: switch case NaN issue
URL: https://github.com/apache/royale-compiler/issues/104#issuecomment-565315220
 
 
   NaN is really 'special' for this stuff. It could perhaps be done for NaN as 
a literal, but you could also have a 'case myVar:' where myVar is another 
Number var that had a NaN value and there is no reasonable way the compiler 
could be sure of that for the general case at compile time to add special case 
code. I think it is actually correct as it is. I did not check legacy Flex 
compiler, but I suspect this is bytecode level anyhow. To me it falls in the 
same category as:
   `[NaN].indexOf(NaN)`
   which is also -1 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to