Jonathan Paisley
jp-ww****@dcs*****
Thu Mar 9 02:55:22 JST 2006
On 8 Mar 2006, at 15:35, kimura wataru wrote: > I tested samples of RubyCocoa with removing ns_override. It seems > the samples runs without any problems. It seems fine for me too. One thing I noticed in the updated code: def ns_overrides(*args) # In Ruby 1.8 (after 2002.9.27), this method may be called more # first than 'Class#inherited'. ns_inherited() i.e., in case ns_overrides gets called before 'ns_inherited' then ns_inherited gets called first. For the new method_missing code, _ns_behavior_method_added won't call ns_overrides unless ns_inherited has been called (due to the check in _ns_enable_override?). Does this mean that if, for some reason, method_added is called before 'inherited' then ns_override will not get executed? Sorry that this isn't very clear :)