[Gambas-user] Question about Object.Size and object symbol enumeration

Jussi Lahtinen jussi.lahtinen at ...626...
Mon Jan 16 18:55:38 CET 2012


Just wondering where Object.SizeOf is usually needed for...
Example, you can use SizeOf() function to determine needed space to write
memory to file.
But Object.SizeOf cannot be used for that. Maybe there should be warning in
documentation about
dissimilarities between SizeOf() and Object.SizeOf.

But not really a problem, since you can enumerate object symbols.

Jussi




2012/1/16 Benoît Minisini <gambas at ...1...>

> Le 16/01/2012 17:45, Jussi Lahtinen a écrit :
> > Hi!
> > Seems like function Object.SizeOf() always returns numbers dividable by
> 8.
> > Is this because objects are allocated as 64 bit chunks in 64 bit OS, or
> is
> > this bug?
> >
>
> Object sizes are always padded so that their size is a multiple of 8 bytes.
>
> What's the problem with that?
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Mar 27 - Feb 2
> Save $400 by Jan. 27
> Register now!
> http://p.sf.net/sfu/rsa-sfdev2dev2
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list