Import status
Jari-Matti Mäkelä
jmjmak at utu.fi.invalid
Wed Jul 12 15:35:50 PDT 2006
Lucas Goss wrote:
> Lucas Goss wrote:
>> solutions:
>>
>> -prefix-importing proposed (import std.string alias str)
>> -tries to solve problem of name collisions
>>
>> -private invisible (not visible to importing modules)
>> -tries to solve problem of name collisions by hiding modules
>> -tries to make private more intuitive
>>
>> -private by default
>> -tries to solve the problem of name collisions
>> -tries to solve the problem of default gotchas
>>
>
> I like these three. The visible private makes no sense and like someone
> else said, "is evil". And private by default along with prefix-importing
> seems to solve maintainability problems as well as being simple.
These three look best to me too.
Visible private (import) is definitely non-consistent with not importing
at all. Luckily private members are visible, but not accessible and
private imports are not visible nor accessible currently by design.
--
Jari-Matti
More information about the Digitalmars-d
mailing list