From: Angel Martin Date: 2004-06-04T04:09:19+09:00 Subject: Re: variable -- set value El mar, 01-06-2004 a las 17:40, Mark Hubbart escribi�: > String#replace replaces the contents of the string with the argument > passed. > > But everything in ruby is done by reference, so there is no clean way > of doing what you are talking about that works for every type. This is > one of those things that really bugged me at first, but I eventually > liked; Not being able to do tricks like that doesn't seem to hamper my > code any, and leaves it much easier to understand. > > I would recommend leaving the pointers to C and Perl :) IMHO, why not a generic replace for every class: 'Object#self=' class?? Thanks, Angel