Import improvement
Daniel Kozák" <kozzi11 at gmail.com>
Daniel Kozák" <kozzi11 at gmail.com>
Mon Oct 15 07:44:31 PDT 2012
On Monday, 15 October 2012 at 14:20:48 UTC, Peter Alexander wrote:
> On Monday, 15 October 2012 at 13:46:43 UTC, deadalnix wrote:
>> I don't think import should make the difference between
>> packages/modules and module content.
>>
>> The example you take is only ambiguous if std is both a
>> package and a module which isn't allowed anyway now. It is a
>> point on which people are willing to advance already (Andrei
>> have made a proposal about it).
>
> My example with module std works as of DMD 2.060, and I can't
> see anything in the spec that says it is disallowed, or are you
> saying that it has been agreed that it will be disallowed in
> the future?
>
>
>> I'm against introducing more new syntax to import. import is
>> already a complex beast.
>
> I agree, but I also don't like the idea of using the same
> syntax to mean two different things.
>
> import foo : bar, baz;
>
> Is this selectively importing symbols or is it importing two
> modules? This is mildly confusing for the programmer, and
> complicates parsing.
And what about
import foo : bar, .baz;
where .baz is module
More information about the Digitalmars-d
mailing list