From: Ned Konz Date: 2001-08-14T23:44:52+09:00 Subject: [ruby-talk:19694] Re: Why not?: Assigning to self On Tuesday 14 August 2001 05:09 am, Ron Jeffries wrote: > Matz refers to Smalltalk #become: which is typically > implemented by searching out all references to the old object and > replacing them with the new. This is costly in the extreme. matju recently posted a 16 line patch that implements Object.become. It works by swapping the actual object contents. It's quite fast, as it only has to copy 15 longs. Have you tried it? http://www.ruby-talk.com/19475 -- Ned Konz currently: Stanwood, WA email: ned@bike-nomad.com homepage: http://bike-nomad.com