List Info

Thread: Ancestors for Singleton classes




Ancestors for Singleton classes
user name
2007-06-16 11:34:39
I am taking this away from ruby-talk as it contains
patches.

By looking at rb_mod_ancestor in class.c one can see that
the
singleton class is *explicitly not included* into the
ancestor list.

Therefore this is done for a purpose(1), I'd love to know
more about it.

As I am curious I just recompiled 1.8.6 with the
class.c.patch-incl-ancestor-for-singletons patch, and it did
what I
wanted at first sight, as I have already done it for fun I
have
included the patch anyway [a monster patch be warned ;)].

If you do not want this patch, which is very likely, maybe
you want
the other, even bigger I am afraid;).

Cheers
Robert

(1) Kindly indicated by Rick too.
-- 
You see things; and you say Why?
But I dream things that never were; and I say Why not?
-- George Bernard Shaw

  
  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )