class.sizeof

Denis Koroskin 2korden at gmail.com
Fri Nov 14 10:01:10 PST 2008


I can't find a way to get a class sizeof property - it returns 4 (32bit  
pointer size) always. I tried many ways but still can't figure out how to  
do this. Documentation says that

".sizeof applied to a class object returns the size of the class  
reference, not the class instantiation."

Is it possible? Any idea is much appreciated.



More information about the Digitalmars-d mailing list