[Issue 5412] New: import wtf2
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 4 17:29:06 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5412
Summary: import wtf2
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: ellery-newcomer at utulsa.edu
--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2011-01-04 17:26:53 PST ---
quick, what does the following code do?
import A = std.algorithm;
import A = std.string;
import std.stdio;
void main(){
writeln(A.indexOf("abc","b"));
}
also, what does it do when you comment out either of the 'import A'?
partial answer: it happily compiles in all three cases.
though this example is a bit unglamorous since indexOf does the same thing
either way.
--
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