[Issue 4251] Hole in the const system: immutable(T)[] implicitly casts to ref const(T)[]

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 18 07:13:41 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=4251


Steven Schveighoffer <schveiguy at 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 <schveiguy at 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: -------


More information about the Digitalmars-d-bugs mailing list