[Issue 5411] import wtf1
http://d.puremagic.com/issues/show_bug.cgi?id=5411 d...@dawgfoto.de changed: What|Removed |Added Status|REOPENED|RESOLVED CC||d...@dawgfoto.de Resolution||DUPLICATE --- Comment #7 from d...@dawgfoto.de 2012-02-16 19:09:37 PST --- *** This issue has been marked as a duplicate of issue 313 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 5411] import wtf1
http://d.puremagic.com/issues/show_bug.cgi?id=5411 --- Comment #6 from Ellery Newcomer 2011-01-06 17:43:42 PST --- (In reply to comment #5) > I think the last test compiles due to > http://d.puremagic.com/issues/show_bug.cgi?id=314 yeah, looking back on this, I think all of them are instances of 314 and the rest is confusion about selective imports since the spec does not indicate how to interpret import mod1, mod2, ... modN: identifier; if it were up to me, I'd just disallow multiple module names in this case -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 5411] import wtf1
http://d.puremagic.com/issues/show_bug.cgi?id=5411 Jacob Carlborg changed: What|Removed |Added CC||d...@me.com --- Comment #5 from Jacob Carlborg 2011-01-06 02:40:47 PST --- I think the last test compiles due to http://d.puremagic.com/issues/show_bug.cgi?id=314 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 5411] import wtf1
http://d.puremagic.com/issues/show_bug.cgi?id=5411 Peter Alexander changed: What|Removed |Added CC||peter.alexander...@gmail.co ||m --- Comment #4 from Peter Alexander 2011-01-05 14:09:40 PST --- Another test: import std.stdio; void main() { writeln(std.algorithm.map!("a+1")([1,2,3])); // compiles } That succeeds (note lack of std.algorithm import) import std.stdio; void main() { writeln(map!("a+1")([1,2,3])); // error: map not defined } That doesn't. Where is map coming from? std.stdio doesn't use a public import for std.algorithm. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 5411] import wtf1
http://d.puremagic.com/issues/show_bug.cgi?id=5411 --- Comment #3 from Ellery Newcomer 2011-01-05 08:50:22 PST --- (In reply to comment #1) > The selective imports only apply to std.algorithm, not std.stdio. > > std.algorithm publicly imports std.stdio, and so the selective import of > writeln from std.algorithm works. > > The behavior is as expected. then why is std.algorithm.map in the local module symbol table? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 5411] import wtf1
http://d.puremagic.com/issues/show_bug.cgi?id=5411 Andrei Alexandrescu changed: What|Removed |Added Status|RESOLVED|REOPENED CC||and...@metalanguage.com Resolution|INVALID | --- Comment #2 from Andrei Alexandrescu 2011-01-05 00:18:55 PST --- std.algorithm imports std.stdio privately. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 5411] import wtf1
http://d.puremagic.com/issues/show_bug.cgi?id=5411 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||INVALID --- Comment #1 from Walter Bright 2011-01-05 00:15:42 PST --- The selective imports only apply to std.algorithm, not std.stdio. std.algorithm publicly imports std.stdio, and so the selective import of writeln from std.algorithm works. The behavior is as expected. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---