Size of a class instance at compile time

Sean Kelly sean at f4.ca
Sat Jan 13 12:24:54 PST 2007


Frits van Bommel wrote:
> 
> You also forgot to take alignment gaps into account.

I think this may be a problem.  The ABI allows class data to be 
rearranged, so alignment gaps can't be predicted (I think) from the 
output of tupleof.  I still wish we could get .isizeof for this :-p


Sean


More information about the Digitalmars-d-learn mailing list