size of a class instance
wbaxter at gmail.com
Mon Nov 13 08:57:10 PST 2006
Sean Kelly wrote:
> Bill Baxter wrote:
>> Is this really the best way to get the size of a class instance given
>> the type?
> Yes. And this only works at run time. I proposed a new .isizeof
> property to simplify things, but it didn't seem terribly popular. See:
Well you've got my vote. MyClass.classinfo.init.length is terribly
unintuitive compared to sizeof(MyClass) in c++.
More information about the Digitalmars-d-learn