From: Mathieu Bouchard Date: 2003-06-21T09:12:40+09:00 Subject: Re: Copying RVALUE On Sat, 21 Jun 2003, Ryan Davis wrote: > On Friday, June 20, 2003, at 01:52 PM, why the lucky stiff wrote: > > access to copy RVALUEs _or_ a reference struct, which could allow > > me to use a VALUE as a pointer to another VALUE. I have looked at > > WeakRef, but it won't allow me to reassign the reference. > Smalltalk's Object#become: would rule here. There's something called Object#become in Ruby 1.8 but I don't quite get its purpose. I have not seen doc for that method yet, but it seemed to be nearly an alias for #replace ?? Long ago I had written a quick hack implementing Smalltalk's #become in Ruby. The patch as-is was simply rejected, for good reasons; but after that, no-one was interested in improving it, making the necessary fixes to it, etc. ________________________________________________________________ Mathieu Bouchard http://artengine.ca/matju