From ec14c2c9b925f6add71f7f4d25e0a281f8adb252 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 12 Aug 2005 07:17:36 +0000 Subject: * numeric.c (fix_equal, fix_cmp, fix_gt, fix_ge, fix_lt, fix_le): reduce coercing when a method knows about a operand type. [ruby-dev:26789] * lib/delegate.rb: simplifies Delegator classes; SimpleDelegator now uses method_missing for all methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/weakref.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lib/weakref.rb') diff --git a/lib/weakref.rb b/lib/weakref.rb index c790055d01..a398ebf1fe 100644 --- a/lib/weakref.rb +++ b/lib/weakref.rb @@ -18,7 +18,8 @@ class WeakRef [ref,...] @@id_rev_map = {} # ref -> obj - @@final = lambda{|id| + @@final = lambda {|id| + printf "final: %p\n", id __old_status = Thread.critical Thread.critical = true begin @@ -42,6 +43,7 @@ class WeakRef