[Issue 2028] Can't create template class in module of same name
https://issues.dlang.org/show_bug.cgi?id=2028 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.012 |D2 --
[Issue 2028] Can't create template class in module of same name
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: ---
[Issue 2028] Can't create template class in module of same name
http://d.puremagic.com/issues/show_bug.cgi?id=2028 Jerry Quinn jlqu...@optonline.net changed: What|Removed |Added CC||jlqu...@optonline.net --- Comment #4 from Jerry Quinn jlqu...@optonline.net 2012-01-13 21:38:36 PST --- Any thoughts? This bug is almost 4 years old and still present. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2028] Can't create template class in module of same name
http://d.puremagic.com/issues/show_bug.cgi?id=2028 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added CC||jmdavisp...@gmx.com --- Comment #5 from Jonathan M Davis jmdavisp...@gmx.com 2012-01-13 22:00:37 PST --- I'm not sure if this is a bug or not. Given that it would work if a.a weren't a template, that would tend to indicate that it's a bug, but I don't know. The problem probably is tied into the fact that a.a doesn't really exist until it's instantiated. Regardless, this is one of a long list of bugs which has been sitting around for a long time without being looked at. The increased community involvement with dmd has helped substantially in getting bugs fixed, but there are still plenty of them like this sitting around. There is talk of putting greater focus on older bugs (e.g. addressing the 10 oldest bugs in bugzill each release) which may finally ameliorate the problem though. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---