From: SpringFlowers AutumnMoon Date: 2007-09-30T11:17:27+09:00 Subject: Re: a = Dog.new # a is not a pointer and not a reference? Morton Goldberg wrote: > On Sep 29, 2007, at 8:18 PM, SpringFlowers AutumnMoon wrote: > >> Come to think about it, a pointer is very clear cut... an alias is >> very >> clear cut. but when it is "reference", then you have to think whether >> it is the pointer behavior or the alias behavior. > > No, you do not. Ruby has it own semantics, which do not correspond > with the semantics of C or C++. Trying to impose the semantics of > other languages onto Ruby isn't going to work. It's best to drop such > baggage and start fresh. hm,... but is there a problem to think of reference in Ruby as a "pointer"? will that cause any trouble? I only see that a.value is not the same as C and C++ would use a->value, but in Ruby we use the "." to replace the "->" and that's it. Will there be further trouble or discrepancy to think of Ruby reference as a pointer? -- Posted via http://www.ruby-forum.com/.