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

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Walter Bright <[email protected]> ---
The exact same thing happens when cstuff.c is actually named cstuff.d. But,
when:

    module foo.bar.cstuff;

is added to cstuff.d, it compiles without error.

The trouble is, when a module statement is not present, the compiler names the
module as if:

    module <filename>;

was present. <filename> is `cstuff`. The compiler does the same thing for .c
files - it assigns a module name of `cstuff`, not `foo.bar.cstuff`.

This boils down to the fact that C files do not have a means to name the
module. I think we're kinda stuck here.

--

Reply via email to