[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Sizeof(Object

Yukihiro Matsumoto

10/5/2007 1:21:00 PM

Hi,

In message "Re: Sizeof(Object)"
on Fri, 5 Oct 2007 22:10:04 +0900, Nikolay Kurtov <nkurtov@gmail.com> writes:

|I search the group and found a topic about sizeof(Class)/
|sizeof(Object).
|
|But there isn't an answer, how can I implement sizeof(Object) in Ruby.
|Maybe someone has some ideas about that?

Define sizeof(Object) in Ruby first. Sum of size of the memory
occupied by an object, which depends on type of the object? Or,
sizeof(RVALUE) that represents memory segment common to every object?

matz.