Move everything under package dcd#417
Conversation
|
It needs to be moved under a So:
|
|
@Hackerpilot if you're happy with this resonably small refactor, I'll turn on |
|
Technically it does compile without packages corresponding to directories... However DCD completion stops working (how ironic). I'll do the change later today when I have access to my PC |
The language specification says
I don't think that DCD is under any obligation to work for code that does not comply with the language specification. |
|
You'll need to fix the |
That was unexpected... DMD stills compiles the code without complaining even if packages and directories don't correspond 😕
Ugh, I forgot about the Makefile and build.bat... |
This is often the case with DMD. In case you haven't found it, the relevant part of the spec is under point 2 in https://dlang.org/spec/module.html#module_declaration |
|
I didn't look for it, I trusted you on that, you must know the specs a lot better than I do after all the work on DCD |
This PR just moves every module from
footodcd.foo. As DCD can be used as a library, importing something with a generic name likeserver.fooisn't optimal to avoid name clashes. Making everything start withdcd.(like dfmt already does) would seem a lot more natural.Now obviously, if this change was pulled, it would break absolutely every single package currently using DCD as a library, and thus would require at least a new minor version; but it's not like it would be very hard to adapt to this change.