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


[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]


--- Comment #1 from [email protected] 2013-08-03 04:37:51 PDT ---
(In reply to comment #0)

> (http://forum.dlang.org/post/[email protected]):

My comments was:

Is it good to add to Phobos a small template (named like "PointerCast" or
something similar) that uses a union internally to perform pointer type
conversions?

Is then the compiler going to warn the programmer when the pointer type
aliasing rule is violated? I mean when the D code uses cast() between different
pointer types (beside constness). An alternative design is to even deprecate
(and later turn those into errors, where the error message suggests to use
PointerCast).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to