On Sunday, 11 August 2013 at 15:28:44 UTC, JS wrote:
On Sunday, 11 August 2013 at 13:40:41 UTC, Timon Gehr wrote:
On 08/11/2013 06:25 AM, JS wrote:
Given an object, is there a built in way to get the size of
the class
the object represents?
Yes.
Troll.
I guess he does not answer to the question as well as others do
(including me) because of your misbehavior in D newsgroups.
Solution to your question is obvious (built-in feature without
any import). By the way, GC.sizeOf seems to return size of
allocated page which is bigger than needed (for ex. it returns 16
for a new int which is 4).