Re: Sizeof class instance

2009-10-04 Thread Jeremie Pelletier
Justin Johansson wrote: Jeremie Pelletier Wrote: Justin Johansson wrote: Jarrett Billingsley Wrote: On Sat, Oct 3, 2009 at 5:50 PM, Justin Johansson wrote: How does one determine the sizeof (in bytes) of an instance of a class in D? .sizeof works as advertised for structs, but for referen

Re: Sizeof class instance

2009-10-04 Thread grauzone
Justin Johansson wrote: grauzone Wrote: Justin Johansson wrote: How does one determine the sizeof (in bytes) of an instance of a class in D? .sizeof works as advertised for structs, but for reference types, .sizeof yields the sizeof the referencing variable (effectively same as size of a poi

Re: Sizeof class instance

2009-10-04 Thread Justin Johansson
grauzone Wrote: > Justin Johansson wrote: > > How does one determine the sizeof (in bytes) of an instance of a class in D? > > > > .sizeof works as advertised for structs, but for reference types, > > .sizeof yields the sizeof the referencing variable (effectively same as > > size of a pointer)

Re: Sizeof class instance

2009-10-04 Thread grauzone
Justin Johansson wrote: How does one determine the sizeof (in bytes) of an instance of a class in D? .sizeof works as advertised for structs, but for reference types, .sizeof yields the sizeof the referencing variable (effectively same as size of a pointer) and not the size of the underlying in

Re: Sizeof class instance

2009-10-04 Thread Justin Johansson
Jeremie Pelletier Wrote: > Justin Johansson wrote: > > Jarrett Billingsley Wrote: > > > >> On Sat, Oct 3, 2009 at 5:50 PM, Justin Johansson wrote: > >>> How does one determine the sizeof (in bytes) of an instance of a class in > >>> D? > >>> > >>> .sizeof works as advertised for structs, but fo

Re: Sizeof class instance

2009-10-03 Thread Daniel Keep
Daniel Keep wrote: > ... > Note: this is VERY old code, but I have no reason to think it won't > still work. I may need a little dusting off... *It* may need a little dusting off. Argh.

Re: Sizeof class instance

2009-10-03 Thread Daniel Keep
Jarrett Billingsley wrote: > On Sat, Oct 3, 2009 at 5:50 PM, Justin Johansson wrote: >> How does one determine the sizeof (in bytes) of an instance of a class in D? >> >> .sizeof works as advertised for structs, but for reference types, >> .sizeof yields the sizeof the referencing variable (effe

Re: Sizeof class instance

2009-10-03 Thread Justin Johansson
Jeremie Pelletier Wrote: > Justin Johansson wrote: > > Jarrett Billingsley Wrote: > > > >> On Sat, Oct 3, 2009 at 5:50 PM, Justin Johansson wrote: > >>> How does one determine the sizeof (in bytes) of an instance of a class in > >>> D? > >>> > >>> .sizeof works as advertised for structs, but fo

Re: Sizeof class instance

2009-10-03 Thread Jeremie Pelletier
Justin Johansson wrote: Jarrett Billingsley Wrote: On Sat, Oct 3, 2009 at 5:50 PM, Justin Johansson wrote: How does one determine the sizeof (in bytes) of an instance of a class in D? .sizeof works as advertised for structs, but for reference types, .sizeof yields the sizeof the referencing

Re: Sizeof class instance

2009-10-03 Thread Justin Johansson
Jarrett Billingsley Wrote: > On Sat, Oct 3, 2009 at 5:50 PM, Justin Johansson wrote: > > How does one determine the sizeof (in bytes) of an instance of a class in D? > > > > .sizeof works as advertised for structs, but for reference types, > > .sizeof yields the sizeof the referencing variable (e

Re: Sizeof class instance

2009-10-03 Thread Jarrett Billingsley
On Sat, Oct 3, 2009 at 5:50 PM, Justin Johansson wrote: > How does one determine the sizeof (in bytes) of an instance of a class in D? > > .sizeof works as advertised for structs, but for reference types, > .sizeof yields the sizeof the referencing variable (effectively same as size > of a pointe

Re: Sizeof class instance

2009-10-03 Thread Jeremie Pelletier
Justin Johansson wrote: How does one determine the sizeof (in bytes) of an instance of a class in D? .sizeof works as advertised for structs, but for reference types, .sizeof yields the sizeof the referencing variable (effectively same as size of a pointer) and not the size of the underlying in

Sizeof class instance

2009-10-03 Thread Justin Johansson
How does one determine the sizeof (in bytes) of an instance of a class in D? .sizeof works as advertised for structs, but for reference types, .sizeof yields the sizeof the referencing variable (effectively same as size of a pointer) and not the size of the underlying instance. I did try scannin