[Issue 5411] import wtf1
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 5 14:11:58 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5411
Peter Alexander <peter.alexander.au at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |peter.alexander.au at gmail.co
| |m
--- Comment #4 from Peter Alexander <peter.alexander.au at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list