bearophile bearophileHUGS at lycos.com
Mon Apr 19 15:43:28 PDT 2010

Ellery Newcomer:

> Won't the union balloon Wrapper's size to always be that of the largest 
> inner struct that you use?

Yes, all items in an array must have the same size. If you want items of different size you have to add a level of indirection, storing inside the array pointers to the structs. Then your structs can be of different size, and you need pointer casts, as I have written in another post.


More information about the Digitalmars-d-learn mailing list