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


timon.g...@gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timon.g...@gmx.ch


--- Comment #1 from timon.g...@gmx.ch 2011-11-26 08:43:51 PST ---
(In reply to comment #0)
> 
> But I don't like that GNU-C idea, a problem with cast() is that it's not
> precise enough, if there are two fields like this, what is a good way to 
> assign
> 's' or 'u' using a cast()?
> 
> union Foo { int s; uint u; };

cast(Foo)cast(uint)exp
cast(Foo)cast(int)exp

You understand that both are assigned, regardless of which one you choose and
ergo it is never a problem?

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

Reply via email to