Yukihiro Matsumoto
3/4/2005 1:17:00 AM
Hi,
In message "Re: Bug: SortedSet gives warning."
on Fri, 4 Mar 2005 10:03:24 +0900, John Carter <john.carter@tait.co.nz> writes:
|In both ruby 1.8.2 and 1.9 (2005-02-10) use of SortedSet gives a warning
|under "-w".
Here's the patch.
matz.
--- lib/set.rb 15 Dec 2004 06:35:53 -0000 1.24
+++ lib/set.rb 4 Mar 2005 01:16:06 -0000
@@ -440,2 +440,7 @@ class SortedSet < Set
+ module_eval {
+ # a hack to shut up warning
+ alias old_init initialize
+ remove_method :old_init
+ }
begin