[Issue 8444] Cannot use dot to disambiguate between local method and class declaration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 3 20:25:09 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8444



--- Comment #4 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-03 20:19:20 PDT ---
(In reply to comment #3)
> Looking at the DMD code I think my bug report is invalid. Dot looks up in the
> module scope, but there's no 'test' in the test module scope (unless it's an
> import of another module named 'test').
> 
> The OP code needs to use ".Foo" instead.

Also if clashes are of concern, the user can use an alias:

alias test ThisModule;

class Foo
{
    void foo(.ThisModule.Foo) { }
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list