[Bug #601] an instance of Bignum can have singleton methods

Bug #601: an instance of Bignum can have singleton methods
http://redmine.ruby-lang.org/issues/show/601

e$B5/I<<Te(B: Yuki S.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$B%+%F%4%je(B: core

Bignume$B$N%$%s%9%?%s%9$,FC0[%a%=%C%I$r;}$F$k$h$&$G$9!#e(B

$ ruby19 -e ‘x = (1 << 64); begin; def x.foo; p 1; end; rescue; end;
x.foo’
#=> 1
(by mamee$B$5$se(B)

e$B8=:_$N!Ve(BFixnume$B$KBP$9$k0l4S@-e(B +
e$B$I$&$;C/$b;H$o$J$$!W$H$$$&@_7W0U?^$+$i$9$l$PFC0[%/%i%9$r:n$m$&$H$9$k;~E@$Ge(BTypeErrore$B$K$J$k$Y$-$G$O$J$$$G$7$g$&$+!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:36569] [Bug #601] an instance of Bignum can
have singleton methods”
on Thu, 25 Sep 2008 22:10:30 +0900, Yuki S.
[email protected] writes:

|Bignume$B$N%$%s%9%?%s%9$,FC0[%a%=%C%I$r;}$F$k$h$&$G$9!#e(B

e$B0l1~!"Nc30$,=P$k$s$G$9$1$I!#e(B

| $ ruby19 -e ‘x = (1 << 64); begin; def x.foo; p 1; end; rescue; end; x.foo’
| #=> 1
|(by mamee$B$5$se(B)

e$B$3$N%1!<%9$G$O$o$6$o$6JdB-$7$F$^$9$+$i$M$(!#e(B

|e$B8=:_$N!Ve(BFixnume$B$KBP$9$k0l4S@-e(B + e$B$I$&$;C/$b;H$o$J$$!W$H$$$&@_7W0U?^$+$i$9$l$PFC0[%/%i%9$r:n$m$&$H$9$k;~E@$Ge(BTypeErrore$B$K$J$k$Y$-$G$O$J$$$G$7$g$&$+!#e(B

e$B$$$A$$$A!“FC0[%/%i%9$r:n$k;~E@$Ge(BNumerice$B$N%5%V%/%i%9$+$I$&$+e(B
e$B%A%'%C%/$9$k$N$O%3%9%H$,A}2C$9$k$N$G$”$^$j$&$l$7$/$J$$$N$G!"e(B
singleton_method_addede$B$NCf$GDj5A$5$l$?%a%=%C%I$r:o=|$9$k$3$He(B
e$B$K$7$^$9!#$b$A$m$s!“e(Bsingleton_method_addede$B$re(Bundefe$B$9$l$PDj5Ae(B
e$B$G$-$k$h$&$K$J$C$F$7$^$&$o$1$G$9$,!”$=$3$^$G$OLLE]$_$-$l$J$$e(B
e$B$H;W$$$^$9!#e(B

e$B%A%1%C%He(B #601 e$B$,99?7$5$l$^$7$?!#e(B (by Yukihiro M.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r19835.

http://redmine.ruby-lang.org/issues/show/601