From: Dave Burt Date: 2005-05-07T00:49:30+09:00 Subject: Re: object reference handle (like perl's reference to scalar) ""Pe�a, Botp"" wrote: > # fname = "Eric" > #is just an assignment to a local variable. There are no method > #calls involved, and nothing to intercept. > > Thanks for the enlightenment, dave. I was narrowly thinking on pure > object-oriented-ness.. You're welcome. > #You can, of course, go even further and remove the =, leaving: > # fname "Eric" > > i'm happy w =. It's more like a "replace" and clearer for me.. > > How about := ? (Remembering pascal...) > > fname := "Eric" > > It looks/means much better/clearer. > Ugh. Can't do that, either, but you can have this: fname :=, "Eric" where := is an ignored symbol literal, and "Eric" is the real value being assigned. Works the same way as 'fname "Eric"'. > btw, where can i get your delegate.rb? It's not mine, it's in the standard library. require 'delegate' should just work. Cheers, Dave