From: Xavier Noria Date: 2006-01-28T22:55:53+09:00 Subject: Re: a = b = new On Jan 28, 2006, at 14:47, Alex Polite wrote: > Hi there. > > I'm coming to ruby mainly from python background. > > in python > a = b = range(10) > > will yields two names pointing to the same object > > but in ruby > > a = b = Range.new(0,9) > > will yield two two distinct objects. See this session: irb(main):001:0> a = b = Range.new(0, 9) => 0..9 irb(main):002:0> a.object_id => 1744024 irb(main):003:0> b.object_id => 1744024 -- fxn