[Issue 12039] "tupleof" ignores named unions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 30 01:12:51 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12039


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

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


--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2014-01-30 01:12:50 PST ---
(In reply to comment #0)
> struct S
> {
>     union u
>     {   
>         int a;
>         int b;
>     }   
> }

It declares an union type inside struct S. a and b are in u, not in S.
Therefore, struct S has no field, then s.tupleof.length == 0.

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


More information about the Digitalmars-d-bugs mailing list