[Issue 4251] Hole in the const system: immutable(T)[] implicitly casts to ref const(T)[]
https://d.puremagic.com/issues/show_bug.cgi?id=4251 Jeroen Bollen jbin...@gmail.com changed: What|Removed |Added CC||jbin...@gmail.com --- Comment #23 from Jeroen Bollen jbin...@gmail.com 2014-04-08 14:39:44 PDT --- *** Issue 12549 has been marked as a duplicate of this issue. *** -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4251] Hole in the const system: immutable(T)[] implicitly casts to ref const(T)[]
http://d.puremagic.com/issues/show_bug.cgi?id=4251 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||patch --- Comment #21 from Kenji Hara k.hara...@gmail.com 2011-12-12 21:56:04 PST --- https://github.com/D-Programming-Language/dmd/pull/558 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4251] Hole in the const system: immutable(T)[] implicitly casts to ref const(T)[]
http://d.puremagic.com/issues/show_bug.cgi?id=4251 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added Summary|Hole in the const system: |Hole in the const system: |immutable values can be |immutable(T)[] implicitly |overwritten (const(T) is|casts to ref const(T)[] |appendable to const(T)[]) | --- Comment #19 from Steven Schveighoffer schvei...@yahoo.com 2011-11-18 07:12:53 PST --- However, I just realized the title is not correct. So I'll change the title to reflect the actual problem (const(T) is perfectly legal to append to const(T)[]). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4251] Hole in the const system: immutable(T)[] implicitly casts to ref const(T)[]
http://d.puremagic.com/issues/show_bug.cgi?id=4251 --- Comment #20 from Andrei Alexandrescu and...@metalanguage.com 2011-11-18 07:45:55 PST --- (In reply to comment #19) However, I just realized the title is not correct. So I'll change the title to reflect the actual problem (const(T) is perfectly legal to append to const(T)[]). I like Timon's example though, it clarifies quite well a significant problem. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---