[Issue 12189] New: "out" parameters should be allowed to modify immutable values in ctors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 17 17:56:18 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12189
Summary: "out" parameters should be allowed to modify immutable
values in ctors
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: thecybershadow at gmail.com
--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-02-18 03:56:13 EET ---
void initialize(out string[] v) { v = ["Hi!"]; }
immutable string[] s;
shared static this()
{
s = ["Hi!"]; // OK
initialize(s); // NG
}
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list