Project

General

Profile

Actions

Bug #704

closed

delegate.rb will only delegate to specifically-named delegate object

Added by erikh (Erik Hollensbe) over 15 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
ruby -v:
Backport:
[ruby-core:19671]

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

patch.gz (274 Bytes) patch.gz erikh (Erik Hollensbe), 11/01/2008 07:56 AM
Actions #1

Updated by matz (Yukihiro Matsumoto) over 15 years ago

  • Status changed from Open to Closed

=begin
fixed by r15376
=end

Actions #2

Updated by erikh (Erik Hollensbe) over 15 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

Actions #3

Updated by matz (Yukihiro Matsumoto) over 15 years ago

=begin
Oops, I misunderstood, because your patch was reversed patch (new -> old).
My bad.

=end

Actions #4

Updated by erikh (Erik Hollensbe) over 15 years ago

=begin
Oh crap. :) Sorry about that. Thanks.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0