D vs. placement new (for classes) aka why D needs .sizeof and .alignof for classes (values not references)
torhu
fake at address.dude
Thu Apr 12 17:39:42 PDT 2007
Frank Benoit (keinfarbton) wrote:
>> Which you know, and does as you say. But then there is:
>> obj.classinfo.init.sizeof
>>
>> Which will render the actual size of class instances. :)
>
> no, it doesn't :)
obj.classinfo.init.length is documented as 'init.length gives size in
bytes of class'.
More information about the Digitalmars-d
mailing list