[Issue 2056] Const system does not allow certain safe casts/conversions involving deep composite types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 17 12:16:30 PST 2010


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


Bruno Medeiros <bdom.pub+deebugz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


--- Comment #2 from Bruno Medeiros <bdom.pub+deebugz at gmail.com> 2010-11-17 12:15:17 PST ---
The latest DMD compiles both code samples now, *however*, I've come to realize
that in fact this code should NOT be allowed (that is, any of the "Error here"
lines in the code above should produce an error), because these casts are
actually not safe.

For the reasons why, see bug #2544 , which is the inverse of this one.

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