-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forward declaration order broken with closures #16
Comments
Does this program give you the same kind of error?
|
@TobiasWrigstad Are you still experiencing the same problems? I've pushed a fix to the bug that the program in my previous comment revealed, and this should make sure that all class types are declared before their use. |
Not seeing the same problems anymore! 22 jul 2014 kl. 19:41 skrev EliasC [email protected]:
Tobias Wrigstad, associate professor (docent) |
@EliasC |
Yup, there's already a test case exposing the bug. |
Although I think this is related to passive classes rather than closures. |
Agreed! |
Forward declarations in C code for Closures can be placed before forward declarations of the data types that appear in their signatures. Manually editing the C files can resolve this, but I suspect some dependencies are not tracked properly when figuring out the order of forward declarations in the code generator. Attempts at moving Encore code around to resolve the matter only caused graver such problems. It may well be that this problem is not dependent on closures, but I have only been able to see it when closures were used.
I do not have a simple test case at this point. Sorry.
The text was updated successfully, but these errors were encountered: