From: Alexey Bovanenko Date: 2010-08-09T03:14:35+09:00 Subject: Re: New in classes --0022152d5fb536529c048d53dfab Content-Type: text/plain; charset=UTF-8 No, you store memory location in link variable. On Sun, Aug 8, 2010 at 10:07 PM, Amir Ebrahimifard wrote: > > > You said "please instantiate the Test class". irb said "Okay, I did > > that; I made a new instance of Test, and here is its memory address so > > you can keep track of this instance later if you need to." > > > > Then you said "Well, that was stupid; I instantiated the Test class, but > > I didn't do anything about capturing that instance, so I have no way to > > refer to it. So this time, please instantiate the Test class and point > > to that instance with a variable called variable." irb said "Okay, I did > > that; I made a new instance of Test, and here is its memory address > > (pointed to by variable) so you can keep track of this instance later if > > you need to. By the way you can see from the address that this is a > > different instance from the one we made earlier." > > you means that in second time that I make an object I named a memory > location to "variable"? > -- > Posted via http://www.ruby-forum.com/. > > -- With regards, Alexei Bovanenko --0022152d5fb536529c048d53dfab--