Thread overview
[Issue 1548] New: foreach of type tuple and string literal bug
Oct 07, 2007
d-bugmail
Oct 07, 2007
d-bugmail
Oct 08, 2007
d-bugmail
October 07, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1548

           Summary: foreach of type tuple and string literal bug
           Product: D
           Version: 2.005
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: sugiyama563@msn.com


import std.stdio;

void main(){
        writefln(join("123", "456"));
}

string[] join(T ...)(T t){
        string[] a;
        foreach(e; t){
                a ~= e;
        }
        return a;
}

The return value of function 'join' is broken.


-- 

October 07, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1548





------- Comment #1 from sugiyama563@msn.com  2007-10-07 10:39 -------
I'm sorry.
This is not a bug.


-- 

October 08, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1548


matti.niemenmaa+dbugzilla@iki.fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--