Sizeof(Object)

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?

Hi,

In message “Re: Sizeof(Object)”
on Fri, 5 Oct 2007 22:10:04 +0900, Nikolay Kurtov
[email protected] 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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs