class .sizeof

2009-10-28 Thread dsimcha
For making the GC precise, I need to be able to get at the size of a class instance at compile time. The .sizeof property returns the size of a reference, i.e. (void*).sizeof. I need the amount of bytes an instance uses.

Re: class .sizeof

2009-10-28 Thread Lars T. Kyllingstad
dsimcha wrote: For making the GC precise, I need to be able to get at the size of a class instance at compile time. The .sizeof property returns the size of a reference, i.e. (void*).sizeof. I need the amount of bytes an instance uses. Not sure if it's what you're after, but there is somethin

Re: class .sizeof

2009-10-28 Thread dsimcha
== Quote from Lars T. Kyllingstad (pub...@kyllingen.nospamnet)'s article > dsimcha wrote: > > For making the GC precise, I need to be able to get at the size of a class > > instance at compile time. The .sizeof property returns the size of a > > reference, i.e. (void*).sizeof. I need the amount o