'exp' vs 'std'? Forked: Vote for std.process

Steven Schveighoffer schveiguy at yahoo.com
Mon Apr 15 10:13:17 PDT 2013


On Mon, 15 Apr 2013 13:03:07 -0400, Andrej Mitrovic  
<andrej.mitrovich at gmail.com> wrote:

> On 4/15/13, Timothee Cour <thelastmammoth at gmail.com> wrote:
>>> How does that work if both modules are std.process?  Wouldn't there be  
>>> a
>>> link error?
>>
>> There won't be a 'duplicate symbol definition', instead, dmd will find
>> the first file on the import path that defines a module std.process.
>
> Phobos comes as a prebuilt static library, which DMD uses. But Phobos
> can't be built entirely as a static library if there are two modules
> with the same name.

Yes, that was my question, the library will define two std.process.  What  
would happen?

-Steve


More information about the Digitalmars-d mailing list