From: Michal Suchanek Date: 2010-02-18T00:48:55+09:00 Subject: Re: "Code must be Chunkable" On 13 February 2010 19:07, David Masover wrote: > > I doubt it. I think what's much more useful is that ECMAScript has prototypal > inheritance. If you're talking about the fact that I can "steal" a method from > one class and apply it to another, there is only one thing stopping this in > Ruby, and it's some anal-retentive type-safety thing probably leftover from > Java or C++ -- the fact that you can't bind an UnboundMethod to anything > that's not either a direct class or a subclass of the class that UnboundMethod > was originally defined on. > Obviously, if you unbind a method from Array which is implemented in C you cannot rebind it to something else. This restrictions is probably less meaningful for pure ruby methods but allowing some methods to be rebound freely and restrict others does not sound very nice either. Thanks Michal