Allow identical imports

Tofu Ninja emmons0 at purdue.edu
Tue Jul 30 08:25:15 PDT 2013


On Tuesday, 30 July 2013 at 15:11:53 UTC, Dicebot wrote:
> On Tuesday, 30 July 2013 at 14:52:52 UTC, Tofu Ninja wrote:
>> I would think that a redundant import would be something along 
>> the lines of a warning, not a full on error, there is no 
>> reason the compiler shouldn't be able to compile it.
>
> That is somewhat similar to "statement has no effect" error. 
> Any warning that has no valid use case should be an error, it 
> does not matter if compiler can do it.

I think the op is a valid use case, being able to have a mixin 
that imports what it needs regardless if it has been imported 
already or not.


More information about the Digitalmars-d mailing list