Thread overview |
---|
October 07, 2007 [Issue 1548] New: foreach of type tuple and string literal bug | ||||
---|---|---|---|---|
| ||||
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 [Issue 1548] foreach of type tuple and string literal bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 [Issue 1548] foreach of type tuple and string literal bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1548 matti.niemenmaa+dbugzilla@iki.fi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID -- |
Copyright © 1999-2021 by the D Language Foundation