From: 7stud -- Date: 2007-10-01T13:35:40+09:00 Subject: Re: a = Dog.new # a is not a pointer and not a reference? Austin Ziegler wrote: > > That's an implementer's view. When I program with Ruby, I don't think of > a variable taking up space. In purely Ruby terms, a variable isn't an > object that I can manipulate. In C++ terms, I can manipulate a variable > because it's a concrete item. > >> Ruby variables hold the value of an object reference. If you re-assign >> them, you are setting them to a different object reference. If you >> retrieve them, you're getting an object reference which you can then >> pass by value or use to invoke methods. > > Conceptually, they're better seen as labels or sticky notes. Maybe not > for the implementers, but definitely at the normal programmer's level. > Thinking about them more than that is just asking for madness because > you can't interact with them at any other level than that. > Your original post was ridiculous and now you've been called out. Take your medicine with some semblance of grace. Back pedaling as fast as you can stirs up a cloud of dust, but we still know its you in there. -- Posted via http://www.ruby-forum.com/.