From: matz@... (Yukihiro Matsumoto) Date: 2002-01-09T01:31:03+09:00 Subject: Re: Possible bug with struct.c (Re: Re: Structs and Marshalling) Hi, In message "Re: Possible bug with struct.c (Re: Re: Structs and Marshalling)" on 02/01/08, Yukihiro Matsumoto writes: ||Another solution is to call rb_clear_cache_by_id() when a ||method is replaced. | |Could you commit this patch? Oops, rb_clear_cache_by_id() should be called regardless of overriding, for cases such as: classes C < B < A. class A defines foo. {id:foo, klass:C, origin:A} is cached. then redefine B#foo, which does not replace older method, but cache should be invalidated. matz.