D vs. placement new (for classes) aka why D needs .sizeof and .alignof for classes (values not references)

Chris Nicholson-Sauls ibisbasenji at gmail.com
Thu Apr 12 22:07:13 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 :)

Note to self: sleep|eat|veg first, post later.  Ah well, at least the correct property got 
brought up eventually.  I'll just go punish myself now (ie, go to bed).  :)

-- Chris Nicholson-Sauls



More information about the Digitalmars-d mailing list