Why modules is so strongly limited?

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 14 16:06:50 PDT 2016


On 7/14/2016 6:37 AM, jmh530 wrote:
> On Thursday, 14 July 2016 at 09:36:17 UTC, Jonathan M Davis wrote:
>> On Wednesday, July 13, 2016 20:58:02 imbaFireFenix via Digitalmars-d wrote:
>>
>> If we didn't do it that way, then it would be a lot harder to figure out where
>> all of the code for a given module was,
>
> I think that's really the best argument.

Yup. Just like you wouldn't add more class members in another file.

C++'s ability to have any file add members to a namespace, which other files may 
or may not see, is a terrible mistake. It makes overloading, for example, not 
humanly checkable at scale.


More information about the Digitalmars-d mailing list