[Issue 7491] import symbol name unavailable in class scope
https://issues.dlang.org/show_bug.cgi?id=7491 Mathias LANG changed: What|Removed |Added Status|REOPENED|RESOLVED CC||pro.mathias.l...@gmail.com Resolution|--- |FIXED --- Comment #7 from Mathias LANG --- D1 is gone --
[Issue 7491] import symbol name unavailable in class scope
http://d.puremagic.com/issues/show_bug.cgi?id=7491 Andrej Mitrovic changed: What|Removed |Added CC||andrej.mitrov...@gmail.com Version|D2 |D1 --- Comment #6 from Andrej Mitrovic 2013-02-05 13:09:41 PST --- Marking as D1-only, Walter can close it if he agrees with Kenji. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7491] import symbol name unavailable in class scope
http://d.puremagic.com/issues/show_bug.cgi?id=7491 --- Comment #5 from Kenji Hara 2012-07-21 00:51:33 PDT --- Walter, D1 also has this bug, but the change of symbol lookup path would *break* existing codes. Therefore I think we should not *fix* this in D1. How about? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7491] import symbol name unavailable in class scope
http://d.puremagic.com/issues/show_bug.cgi?id=7491 --- Comment #4 from github-bugzi...@puremagic.com 2012-07-21 00:29:58 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b19051227f2c06c72f248f23dca13aad73e1d321 Merge pull request #712 from dawgfoto/fix7491 fix Issue 7491 - import symbol name unavailable in class scope -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7491] import symbol name unavailable in class scope
http://d.puremagic.com/issues/show_bug.cgi?id=7491 SomeDude changed: What|Removed |Added CC||lovelyd...@mailmetrash.com --- Comment #3 from SomeDude 2012-04-21 06:09:43 PDT --- See also issue 7494 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7491] import symbol name unavailable in class scope
http://d.puremagic.com/issues/show_bug.cgi?id=7491 d...@dawgfoto.de changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID | --- Comment #2 from d...@dawgfoto.de 2012-02-13 07:47:09 PST --- If that's how things are supposed to work we should enable 'Base.std.stdio' access. https://github.com/D-Programming-Language/dmd/pull/712 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7491] import symbol name unavailable in class scope
http://d.puremagic.com/issues/show_bug.cgi?id=7491 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||INVALID --- Comment #1 from Walter Bright 2012-02-13 01:48:01 PST --- Right, the lookup rules are being followed by the compiler, that is, super classes are looked at before module scope is. To get around that, prefix with the . as in: module b; import a, std.stdio; class Derived : Base { void foo() { .std.stdio.writeln("Derived"); ^ note . prefix } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---