From: "T. Onoma" Date: 2003-12-15T06:10:24+09:00 Subject: Re: inplace assignment On Sunday 14 December 2003 09:54 pm, Peter wrote: > > But, I actually did find a better way to do it this morning, by > > redefining MyClass#new to return a subclass of itself instead. Hmm..I > > forget, what kind of design pattern is that? > > If used for wrapping, this technique would only change the wraps for newly > created objects, right? Is that what we want wrapping to do? > > Peter I have circumvented that problem. Hopefully there are no hidden catches in what I've worked out. I have essentially patterned the design on Ruby's internal implementation of singletons. I'll send you the code here in a bit. It's surprisingly small. -- T.