imports in functions

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Jun 19 21:15:16 PDT 2011


I think I've just found the first bug:

module test;
void main()
{
}

void foo()
{
    import std.utf;
    "bla".toUTF16z;
}

Error: undefined identifier module test.toUTF16z

UFCS doesn't work with function imports. This is a bug, right?


More information about the Digitalmars-d mailing list