http://d.puremagic.com/issues/show_bug.cgi?id=6175
Steven Schveighoffer <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #5 from Steven Schveighoffer <[email protected]> 2012-04-19 07:44:51 PDT --- (In reply to comment #4) > import std.conv, std.stdio; > > void main() > { > immutable char[9] statCArr = "BlaBlaBla"; > writeln("poupoupidouwah"); > auto res1 = to!(char[])(statCArr); > writeln(res1); > writeln(statCArr[]); > } This is converting const, so to is likely doing a dup/idup. If you change res1 to immutable(char)[], it fails in the same way. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
