[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 13 11:54:36 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4251
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schveiguy at yahoo.com
--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> 2010-07-13 11:54:33 PDT ---
The issue is casting a ref T[] to a ref const(T)[].
The safety is broken if you implicitly apply const two references deep.
I think this is a dup of bug 2095 (which actually is dup of a sub-1000 bug).
But I think the const implications are somewhat new. I recall there was either
a discussion on the NG or another bug that covers this. Maybe someone else can
find it.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list