[Issue 6912] const(T)[]/immutable(T)[] can be implicitly cast to inout(const(T)[])/inout(immutable(T)[])

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 9 21:39:28 PST 2011


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


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch, rejects-valid
           Platform|Other                       |All


--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2011-11-09 21:38:49 PST ---
https://github.com/D-Programming-Language/dmd/pull/504

This patch will forbid some conversions like follows.
e.g. const(int)[]    to inout(const(int)[])
     const(int)[int] to inout(const(int)[int]).

-- 
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