Page 1 of 1

Internal structure

Posted: Tue Jan 01, 2013 9:10 pm
by User_Russian
It would be great if in a structure could create the structure.
As in C.

Code: Select all

typedef union _LARGE_INTEGER {  
    struct {
        DWORD LowPart;  
        LONG  HighPart; 
    };
    LONGLONG QuadPart;
} LARGE_INTEGER;

Re: Internal structure

Posted: Wed Jan 02, 2013 12:50 am
by Demivec
This is referred to as an 'anonymous structure' and has been requested before here.

I agree it would be nice to have.

Re: Internal structure

Posted: Wed Jan 02, 2013 8:02 am
by davido
Hi Guys,

Would you take a moment to explain the benefits of such structures and how they might be used?

Always nice to learn something new.

Regards

Dave

Re: Internal structure

Posted: Mon Apr 06, 2015 3:03 pm
by juror
If I remember correctly, this kind of behavior is more likely to cause "down". :)