From: ara.t.howard@... Date: 2006-09-09T01:23:55+09:00 Subject: Re: [CHALLENGE] better alias_method On Sat, 9 Sep 2006, Marshall T. Vandegrift wrote: > ara.t.howard@noaa.gov writes: > >> even more distilled: >> >> harp:~ > cat a.rb >> class C >> def m() '' end >> >> include Module.new{ def m() 'a' end } >> end >> >> p C.new.m >> >> >> harp:~ > ruby a.rb >> "" >> >> >> i find that behviour quite suprising... in fact, it seems like a bug, but i'm >> probably wrong... thoughts? > > Module inclusion is inheritance, so far as method look-up goes, right?: indeed. hadn't consider it that way. thanks. -a -- what science finds to be nonexistent, we must accept as nonexistent; but what science merely does not find is a completely different matter... it is quite clear that there are many, many mysterious things. - h.h. the 14th dalai lama