From: Calamitas Date: 2008-09-09T01:52:54+09:00 Subject: Re: "Pointer" to an object? (i.e. reflect changes to original) ------=_Part_10440_1554419.1220893149657 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Sep 8, 2008 at 4:39 PM, Doug Glidden <41mortimer@gmail.com> wrote: > # code snippet 1 > p = Person.new # => # :last_name, > # :middle_name, :location, :primary_email, > # :primary_phone_number]> > p.personal_email = 'me@home.com' > def p.primary_email personal_email end Or closer to the pointer solution you want: p.primary_email = lambda { p.personal_email } p.personal_email = 'me@gmail.com' puts p.primary_email.call The lambda expression corresponds to the address operator, the .call corresponds to a pointer dereference. Peter ------=_Part_10440_1554419.1220893149657--