From: Stefan Rusterholz Date: 2009-01-22T18:38:58+09:00 Subject: Re: String doesnt auto dup on modification Robert Klemme wrote: > class MyClass > def initialize(name) > @name = name.dupf > end > end I'd vote against this. It looks to me like a great way to confuse users and complicate interfaces. I'd rather go towards transparency. Generally I'd not mutate arguments, only the receiver. If there's a valid case to mutate an argument, it should be documented and evident. The user then has to provide a duplicate if he still needs the original. Just my 0.02��� Regards Stefan Rusterholz -- Posted via http://www.ruby-forum.com/.