Actions
Bug #601
closedan instance of Bignum can have singleton methods
Bug #601:
an instance of Bignum can have singleton methods
Description
=begin
Bignumのインスタンスが特異メソッドを持てるようです。
$ ruby19 -e 'x = (1 << 64); begin; def x.foo; p 1; end; rescue; end; x.foo'
#=> 1
(by mameさん)
現在の「Fixnumに対する一貫性 + どうせ誰も使わない」という設計意図からすれば特異クラスを作ろうとする時点でTypeErrorになるべきではないでしょうか。
=end
Actions