[Issue 10512] Reinterpret-casting struct fields as another struct should be @safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 30 11:40:50 PDT 2013


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


Maxim Fomin <maxim at maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim at maxim-fomin.ru


--- Comment #1 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-06-30 11:40:49 PDT ---
These structs may come from different implementations with different
alignments. In general case structs may include other aggregate types where
situation may be complicated. D has unions for such tricks (you are better with
placing long l in last place). In my opinion this is wontfix.

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