Actions
Bug #704
closeddelegate.rb will only delegate to specifically-named delegate object
Description
=begin
long story short, I needed to redefine getobj and setobj for a porting effort for a class that inherited from DelegateClass. The new ivar that getobj and setobj accessed was not able to be used by Delegator.delegating_block because the ivar is assumed to be named what the default is, and send is called against that.
Included is a patch which uses getobj to get that value instead.
=end
Files
Updated by matz (Yukihiro Matsumoto) about 16 years ago
- Status changed from Open to Closed
=begin
fixed by r15376
=end
Updated by erikh (Erik Hollensbe) about 16 years ago
=begin
I don't think this is actually fixed, it still uses @delegate_dc_obj instead of using the value returned by getobj to call send against.
=end
Updated by matz (Yukihiro Matsumoto) about 16 years ago
=begin
Oops, I misunderstood, because your patch was reversed patch (new -> old).
My bad.
=end
Updated by erikh (Erik Hollensbe) about 16 years ago
=begin
Oh crap. :) Sorry about that. Thanks.
=end
Actions
Like0
Like0Like0Like0Like0