-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Issue 9987 - Declaring struct ModuleInfo should be allowed #1932
Conversation
|
Thanks for fixing this. Why did you make it dmd2 only? |
|
It seems to me that we could drop other reserved classnames too if we ensure, that the compiler always uses fully qualified names to access them. The candidates are Throwable, TypeInfo_*, Object etc., not subject to this pull of course. |
The macro constant |
I'm not sure this should be done. Yes, we would be able to remove the limitation, but redefining the names in user code might introduce some confusion. (If redefine |
|
Yes and currently some things are allowed, like overriding the definition of |
|
I mostly agree with both of you, what we're seeing is an artifact of modelling builtin reserved types with an import of object. Ideally some of these would live in a namespace above the normal one. |
Issue 9987 - Declaring struct ModuleInfo should be allowed
|
See #2175. |
http://d.puremagic.com/issues/show_bug.cgi?id=9987