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


Walter Bright <bugzi...@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzi...@digitalmars.com
         Resolution|                            |INVALID


--- Comment #6 from Walter Bright <bugzi...@digitalmars.com> 2012-01-22 
01:35:54 PST ---
The error you get is expected.

The statement:

    import a;

introduces the name 'a' into the current scope, where 'a' is a module name.
Names in the current scope are always searched before names in imported scopes.
Hence, the 'a' module name is found before 'a' the template.

a.a works because module 'a' is found, and then 'a' is looked up in the scope
of module 'a'.

This is how it is designed to work.

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

Reply via email to