Some quick questions

Márcio Faustino m.faustino at no.spam.gmail.com
Wed Aug 8 07:10:54 PDT 2007


Thanks for all your replies. I have one more quick question: how do I 
access union's members, inside a struct? For example:

;struct S {
;	union u {
;		ubyte b;
;		uint i;
;	}
;}
;S s;
;ubyte b = s.u.b;    // Error: need 'this' to access member b

Thanks!


More information about the Digitalmars-d-learn mailing list