From: Parker Selbert Date: 2010-10-18T09:22:22+09:00 Subject: Re: simple question: pointer equivalent in ruby David A. Black wrote in post #954969: > Hi -- > > On Mon, 18 Oct 2010, Parker Selbert wrote: > >> >> value = 5 >> other = value.dup > > Have you tried running that? :-) Doh! I really should have gone with a non nil, symbol, number example instead =) Shea Barton wrote: > I fixed my problem using setters and getters. If you're now writing manual accessors (method, method=) definitely look at attr_accessor, which will save you a lot of work. -- Posted via http://www.ruby-forum.com/.