DMD 2.071.1 and Issue 15925 - [REG 2.071] Import declaration from mixin templates are ignored

Mathias Lang via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 30 05:36:38 PDT 2016


2016-06-30 14:20 GMT+02:00 captaindet via Digitalmars-d <
digitalmars-d at puremagic.com>:
>
> does this mean mixin templates now have no way of adding imports to the
> scope they are mixed in?
>

That's exactly what it means. Likewise a base class cannot add an import
that will be visible by it's sub classes.
string mixin will still work though.

> or is all this a special case for classes? how about at module level?
where is all this mentioned in the specs?

What about module level ?
I suggest you look at the linked P.R.
It should describe the new import behaviour, as well as the new lookup rule
(previously underdocumented).
If it doesn't address all your questions, feel free to comment on it, so it
can benefit everyone.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20160630/cd9f9bb0/attachment.html>


More information about the Digitalmars-d mailing list