Elias Athanasopoulos wrote: > Hello! > > Suppose: > > pool = [1.2, 2.434, 1.132, 1.1334] > foo = 0.0 > pool.each do |x| > foo = x # foo changes value and actual address in mem > end > > Can I give foo the value *only* of x but not change its > actual address in memory? > > Regards, Variables in Ruby are not objects, they hold only references to other objects. At first foo references object 0.0 (Float), then 1.2 and so on. Gennady.