On 2005-01-24, Csaba Henk <csaba / phony_for_avoiding_spam.org> wrote:
> In fact, this is the proper way of cloning. If you do so, sending a
> message to Bar which is defined in Foo will be properly dispatched at
> Foo. You also get reflection for free: existing methods like
> Module#ancerstors will give the correct info here as well.

Ah, and one more neat trick: as prototype based objects are instances of
the same class Module (or a customized Prototype class), you can get
just one particular method of one p.b.o as UnboundMethod, and bind it to
another p.b.o. ... You also use here that p.b.o-s extend themselves.

Csaba