From: Daniel Brockman Date: 2005-06-30T01:16:57+09:00 Subject: Re: yield does not take a block Eric Mahurin writes: > I think the destructive modification of a class and of an object's > class (making its class a singleton) are the main culprits. However, I ``destructively'' modify standard library classes and modules all the time. This is a major selling point for Ruby. > If these were non-destructive (returning a new class or new object > with a singleton class), it would have allowed more optimization. I don't see how returning a new class could be useful in any way. For example, what should happen if you say this? class Numeric ; def infinite? ; false end end -- Daniel Brockman