On 6/16/07, dblack / wobblini.net <dblack / wobblini.net> wrote:
> Hi --
>
> On Sun, 17 Jun 2007, Devin Mullins wrote:
>
> > dblack / wobblini.net wrote:
> >> I do sometimes wonder what would happen if the ancestry array were
> >> writeable.  It could be interesting.  I haven't thought through the
> >> possible pitfalls.
> >
> > You mean, like Object#become? :)
>
> Not exactly.  As I understand it, #become involves references changing
> from one object to another.  I'm thinking of something more like:
>
>    module M
>    end
>
>    a = Object.new
>    class << a
>      ancestors.unshift(M)  # essentially same as a.extend(M)
>    end

Would you want to be able to switch ordering too?  I wonder what kind
of interesting evil could come of that...