imports in functions
Nick Sabalausky
a at a.a
Mon Jun 20 15:50:45 PDT 2011
"Andrej Mitrovic" <andrej.mitrovich at gmail.com> wrote in message
news:mailman.1030.1308543325.14074.digitalmars-d at puremagic.com...
>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?
UFCS barely works at all in D2. Another example:
Regression(2.020) Array member call syntax can't find matches in current
class
http://d.puremagic.com/issues/show_bug.cgi?id=4525
More information about the Digitalmars-d
mailing list