UFCS in template function

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Aug 29 13:02:05 PDT 2013


On 8/29/13, Jacob Carlborg <doob at me.com> wrote:
> UFCS only works for module level functions.

However it does work for local imports (I think this was new in 2.063):

void main()
{
    import std.range;
    assert([].empty);  // ok
}


More information about the Digitalmars-d-learn mailing list