From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2001-08-15T03:50:36+09:00 Subject: [ruby-talk:19719] Re: Why not?: Assigning to self In article , Dave Thomas wrote: >Ned Konz writes: > >> > I don't see the utility to add #become just to change the class of an >> object. >> >> How else would you do it in Ruby? > >I think what Guy was saying was that he didn't see any need to do it, >regardless of the mechanism used. > >Perhaps if we could see an actual example of where this is needed we >could discuss this better. I know there was some talk a while back of >some code that handled (I think) archives or somesuch. Could be see >the code for this so we could think about it. > Also, somebody presented an example of a state machine that would have benefited from having a 'become'. That might also be a good example to present here in this thread. Phil