Skip to content
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

Haxe import/using irregulaties made more plain. #12017

Open
0b1kn00b opened this issue Feb 17, 2025 · 1 comment
Open

Haxe import/using irregulaties made more plain. #12017

0b1kn00b opened this issue Feb 17, 2025 · 1 comment

Comments

@0b1kn00b
Copy link

I set up a library to demonstrate this. Here is the truth table:

Declaration Module Inner Types Enum Ctr Using
import pack.Type true true true
import pack.* true false false
using pack.Type true true true true
using pack.* xxxx xxxx xxxx xxxx

https://github.com/0b1kn00b/haxe_imports

@0b1kn00b
Copy link
Author

So if you have an abstract over an enum for example, you always have to import the module individually or you don't get the enum constructors. There's a lot more examples like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant