| Issue 27: | Wrong function generation order on chained function call. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Please refer to http://gist.github.com/436483 "Main.cpp" is compiled from "Main.hx". The program should trace out "f1, f2". But it traces out "f2, f1". "Main.cpp" is generated wrong.
Aug 4, 2010
Project Member
#1
gameh...@gmail.com
Status:
WontFix
Aug 4, 2010
I've checked the following code will produce correct output, so isn't it can be fixed by letting the compiler generates code as if it is written that way? http://gist.github.com/436483#gistcomment-6940
Aug 4, 2010
I don't think that the order is the problem, the anonymous functions are falsely referenced. Have a look at this: https://gist.github.com/040e8ada9b5455d9a224
Aug 9, 2010
Yes - sorry, I see the problem - a genuine bug as you say. I have fixed it be reordering a piece of code. It looks better now - I just can't figure out why I did it the other way in the first place. The reordering I originally thought it was is a separate problem, more for f(i++,i++) ordering.
Status:
Fixed
Aug 9, 2010
I can confirm that it works now as expected, thx for your amazing effort! |