[dmd-beta] dmd 2.063 beta 3

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun May 19 10:55:29 PDT 2013


On 5/19/13, Kenji Hara <k.hara.pg at gmail.com> wrote:
> This behavior is intended change.
>
> From 2.063, UFCS name lookup finds *most inner* imported name.
>
> module test;
> void map(alias func, T)(T){}  // dummy
> void main() {
>     import std.algorithm;
>     auto r = [1,2,3].map!(a=>a*2);    // hit std.algorithm.map instead of
> test.map
> }

Right, that's a cool feature. I'll add this specific feature to the
changelog, and await what to do about class imports.


More information about the dmd-beta mailing list