[Issue 607] New: toString can't handle char[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 27 06:27:14 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=607
Summary: toString can't handle char[]
Product: D
Version: 0.175
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: davidl at 126.com
in phobos toString only play with char*
remember char* is different from char[]
i use enki to parse a char[] buf, and set the substrings in buf to be the AA's
keys and values, then i tostring AA["Key1"] , i can see not only the AA["key1"]
given , but also something in buf all tostringed
a simple case couldn't be provided by now, but i think std.string should
include a new func
char[] toString(char[] s)
{
return s;
}
--
More information about the Digitalmars-d-bugs
mailing list