D modules/sourcecode organisation/filesystem mapping
Sean Kelly
sean at f4.ca
Fri May 12 13:51:32 PDT 2006
Bruno Medeiros wrote:
> FunkyM wrote:
>>
>> Yeah, infact it is a basic change mainly on the "module" keyword. My
>> "extended"
>> explaination might be a bit too much information on one shot.
>>
>> Right now you for a file "/foo/bar.d" you would have to write "module
>> foo.bar;"
>> and you can NOT have a file "/foo.d" with "module foo;".
>>
>> These changes make it possible to say "module foo;" in "/foo/bar.d"
>> and use
>> "/foo.d" with "module foo;" which results in "merging" the two scopes.
>>
>
> What happens when both "module foo;"'s have module
> constructors/destructors ?
My guess is that one of the ctor/dtor pairs would either be thrown out
during library assembly (or linking), or that a duplicate symbol error
would be generated. I think the 'ld' tool on Linux could be made to do
either, but I'm not sure how flexible the Windows tools are.
Sean
More information about the Digitalmars-d
mailing list