From: matz@... (Yukihiro Matsumoto) Date: 2002-02-01T13:17:29+09:00 Subject: Re: strange behavior Hi, In message "Re: strange behavior" on 02/02/01, Paul Brannan writes: |I get 42. But when I do this: | | class Bar | def initialize(t) | extend(t) | p A | end | end | | Bar.new(Config2) | |I get an exception. Is Config2 not one of Bar's ancestors? Just in case you don't get the Alan's point, "extend" extends the "instance of Bar" being initialized, not Bar. So the answer is that Config2 is NOT the ancestor of Bar. matz.