Make imports private by default
Hong
Hong_member at pathlink.com
Thu Apr 13 05:27:25 PDT 2006
What Frank Benoit wrote seems perfectly understandable for most people. Poluting
the namespace is just as meaningful as anything you can get.
In article <e1lct1$25an$1 at digitaldaemon.com>, Hasan Aljudy says...
>
>Frank Benoit wrote:
>> There was a posting of Tyro
>> http://www.digitalmars.com/d/archives/digitalmars/D/11081.html
>>
>> Most ppl seconded that.
>>
>> The problem is, that D does not work if you use non-private imports all
>> the time. Suddenly there are conflicts.
>>
>> A public import make the imported module part of this modules interface.
>> This can (and should) be made public explicitely.
>>
>
>I never understood why people use private imports .. just what the hell
>is the point?
>Please give real, concrete examples, not just theories/talk.
>"Clogging up the namespace" doesn't say anything meaningful to me.
More information about the Digitalmars-d
mailing list