Need advice on Error: package name conflicts with usage as a module name
Alexander
roland.taverner at gmail.com
Sun May 31 03:51:18 UTC 2026
Now I'm just a few steps away from finishing the revival of the
project at https://github.com/rumbu13/windows-d, and I've run
into an annoying problem.
There is a **file** windows\win32\devices.d (module
windows.win32.devices), and there are also files under the
windows\win32\devices\ **directory** that declare modules like
windows.win32.devices.XXX.
So I need to rename the module in windows\win32\devices.d and
probably move it into the devices\ subdirectory. Since this is a
WinAPI projection, I'd like to pick a good replacement name for
the module, but I have no idea what would make the most sense.
devicesbase? devicesroot? devices_?
And this isn't just a single file/module with this problem —
there are a lot of them.
Or is there a more elegant solution?
P.S. This started as "OK, I'll fix one or two bugs and move on. A
15-minute adventure." Instead, I've spent an entire month
rewriting the CLI metadata access layer into something reliable
and easier to understand. But it was worth it: I now have
compile-time checks that prevent a lot of bugs when accessing
metadata tables.
More information about the Digitalmars-d
mailing list