[Issue 22674] ImportC: compatible types declared in different translation units are not treated equivalent in D.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 16 17:57:03 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22674

--- Comment #3 from Adam D. Ruppe <destructionator at gmail.com> ---
i wanna subscribe to this too as i also wrote about it:

http://dpldocs.info/this-week-in-d/Blog.Posted_2022_05_16.html#importc-and-module-namespaces


Working on isolated unittests and one day toys is one thing. Working in a real
world project that has more than one piece is another.

My proposal there is to bring the importC declarations into a global
implementation-defined module, then the other names work like `mixin templates`
or `aliases` for disambiguation purposes.

--


More information about the Digitalmars-d-bugs mailing list