[#3419] Valgrind analysis of [BUG] unknown node type 0 — Andrew Walrond <andrew@...>

Hello list,

19 messages 2004/09/17
[#3422] Re: Valgrind analysis of [BUG] unknown node type 0 — ts <decoux@...> 2004/09/17

>>>>> "A" == Andrew Walrond <andrew@walrond.org> writes:

[#3423] Re: Valgrind analysis of [BUG] unknown node type 0 — Andrew Walrond <andrew@...> 2004/09/17

On Friday 17 Sep 2004 12:01, ts wrote:

[#3424] Re: Valgrind analysis of [BUG] unknown node type 0 — ts <decoux@...> 2004/09/17

>>>>> "A" == Andrew Walrond <andrew@walrond.org> writes:

[#3425] Re: Valgrind analysis of [BUG] unknown node type 0 — Andrew Walrond <andrew@...> 2004/09/17

On Friday 17 Sep 2004 12:37, ts wrote:

[#3426] Re: Valgrind analysis of [BUG] unknown node type 0 — ts <decoux@...> 2004/09/17

>>>>> "A" == Andrew Walrond <andrew@walrond.org> writes:

[#3428] Re: Valgrind analysis of [BUG] unknown node type 0 — Andrew Walrond <andrew@...> 2004/09/17

On Friday 17 Sep 2004 13:05, ts wrote:

[#3429] Re: Valgrind analysis of [BUG] unknown node type 0 — ts <decoux@...> 2004/09/17

>>>>> "A" == Andrew Walrond <andrew@walrond.org> writes:

[PATCH] delegate.rb has debugging p

From: Eric Hodel <drbrain@...7.net>
Date: 2004-09-19 18:55:38 UTC
List: ruby-core #3457
While using DL with a Tempfile, I found it printing [:to_ptr] during my 
tests.  I looked all over DL to find where this mystery printout came 
from, but eventually caught it in delegate.rb when I noticed that it 
only printed out when I was used Tempfile.

Attached is the patch.



-- 
Eric Hodel - drbrain@segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04

Attachments (2)

delegate.diff (841 Bytes, text/x-diff)
Index: lib/delegate.rb
===================================================================
RCS file: /src/ruby/lib/delegate.rb,v
retrieving revision 1.18
diff -u -9 -p -r1.18 delegate.rb
--- lib/delegate.rb	7 May 2004 08:44:22 -0000	1.18
+++ lib/delegate.rb	19 Sep 2004 18:50:58 -0000
@@ -86,19 +86,18 @@ def DelegateClass(superclass)
   klass = Class.new
   methods = superclass.public_instance_methods(true)
   methods -= ::Kernel.public_instance_methods(false)
   methods |= ["to_s","to_a","inspect","==","=~","==="]
   klass.module_eval {
     def initialize(obj)
       @_dc_obj = obj
     end
     def method_missing(m, *args)
-      p [m, *args]
       unless @_dc_obj.respond_to?(m)
         super(m, *args)
       end
       @_dc_obj.__send__(m, *args)
     end
     def __getobj__
       @_dc_obj
     end
     def __setobj__(obj)
PGP.sig (186 Bytes, application/pgp-signature)

In This Thread

Prev Next