www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5412] New: import wtf2

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: ellery-newcomer utulsa.edu



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: -------
Jan 04 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5412




Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/d56aa5f2aa1bb228511a08b26999022ed62fb19e
fixed Issue 5412

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 18 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5412




Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ebee93a3743e10d9826b371c8217f3ab45b1d54b
Revert "fixed Issue 5412"

This reverts commit d56aa5f2aa1bb228511a08b26999022ed62fb19e.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 18 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5412


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED



18:40:09 PST ---
https://github.com/D-Programming-Language/dmd/pull/732

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 18 2012