From: SpringFlowers AutumnMoon Date: 2007-09-30T11:39:57+09:00 Subject: Re: a = Dog.new # a is not a pointer and not a reference? Ian Whitlock wrote: > So if you find it helpful and wish to say that some of the purpose of > variables in Ruby is served by some of the functions of some pointers > in languages with pointers, I doubt if any rubist would disagree. But > if you say Ruby variables are pointers in other languages, they are > likely to reply,"Rubbish", because Ruby does not want to require the > low level bookkeeping that pointers imply. I want to think of it like as a pointer to distinguish it from the C++'s reference, which is quite different. Maybe if C++ didn't call that reference but called it alias, then the word reference wouldn't lead to some people thinking of it as C++'s reference. -- Posted via http://www.ruby-forum.com/.