June 18, 2013 [Issue 10400] New: char array std.conv.to of iota range | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10400 Summary: char array std.conv.to of iota range Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2013-06-18 04:47:33 PDT --- import std.stdio, std.range, std.algorithm, std.conv; void main() { iota(65, 70).map!(i => cast(char)i).writeln; iota(65, 70).to!(char[]).writeln; } Output, dmd 2.064.2: ABCDE [65, 66, 67, 68, 69] Expected output: ABCDE ABCDE -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 18, 2013 [Issue 10400] char array std.conv.to of iota range | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=10400 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from bearophile_hugs@eml.cc 2013-06-18 04:55:51 PDT --- I presume that this: iota(65, 70).to!(char[]) Is seen as similar to: text(iota(65, 70)) So it produces only one string of the whole array. So this bug report is invalid... sorry. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation