From: Xaea Alvein Date: 2006-08-30T10:04:55+09:00 Subject: Re: rinda and ruby numbers i am trying to control the behaviour of my tuplespace items (objects put into tuplespace) by assuring that the sizes of the items are static (i.e. numbers won't change class into Bignum from Fixnum, etc). so aside bitwising, is there any other method to manipulate those numbers (ruby switches maybe)? Timothy Goddard wrote: > Memory allocation is not your concern unless you are using the C API. > Memory is allocated as required and dead objects are garbage collected. > Although process memory will not yet shrink in Ruby (it doesn't have a > compacting garbage collector) it will be reused for new objects. Ruby > numbers will automatically generate instances of Bignum for any > operation which would overflow the range of a Fixnum object. The effect > of this is they grow as required to fit large numbers. > > What exactly do you want to do? Maybe we can help if you explain your > problem. -- Posted via http://www.ruby-forum.com/.