-
Notifications
You must be signed in to change notification settings - Fork 366
Order sensitivity across namespaces #386
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
Comments
Good spot. I am assuming that the correct fix is to write out forward declarations across all namespaces, and then iterate all the namespaces again to write everything else. I shall do so when I get a moment. |
Actually that is nonsense and won't work at all. I need to first look into how sensitive cxx is to definition order irrespective of namespaces. |
There is order sensitivity without namespaces too: struct A {
b: B
}
struct B {
c: i32
} works in normal Rust code, but does not work in a
I assume this is a known limitation of what can be put in |
The "field has incomplete type" issue is #292. I should have used |
OK cool. I will probably just do the forward declaration thing then. It may not be for a few days; it's proving to be a busy weekend. |
The namespace sorting introduced in #370 does not handle alphabetically lesser namespaces referencing items from alphabetically greater namespaces.
The text was updated successfully, but these errors were encountered: