From: Simon Strandgaard Date: 2004-03-08T10:14:39+09:00 Subject: Re: proposal: class< David A. Black wrote: >>>I had the impression that they didn't differ much. >>>Is there anyone which can explain this to me? >> >> >> When you do "obj.extend(Mod)", obj.ancestors changes (new module >> added). >> > > To be precise, class << obj; self end.ancestors changes :-) > Thanks David and Kent, now I understand. it seems logical that the ancestors change when doing 'obj.extend', and doesn't when doing 'class< (Testing a new way of posting to Usenet.... hoping it works....) > (Copy to Simon) > Your message didn't show up in the newsgroup... But the posting which I am replying to now gave me a hint, so I checked on ruby-talk, and saw your message there. -- Simon Strandgaard