* [ruby-dev:50522] [Ruby trunk Bug#14670] Objectで定義したmethod_missingでsuperが使えない
[not found] <redmine.issue-14670.20180408013936@ruby-lang.org>
@ 2018-04-08 1:39 ` keiju
0 siblings, 0 replies; only message in thread
From: keiju @ 2018-04-08 1:39 UTC (permalink / raw)
To: ruby-dev
Issue #14670 has been reported by keiju (Keiju Ishitsuka).
----------------------------------------
Bug #14670: Objectで定義したmethod_missingでsuperが使えない
https://bugs.ruby-lang.org/issues/14670
* Author: keiju (Keiju Ishitsuka)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v:
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
class Object
def method_missing(name, *args, &block)
super
end
end
Object.new.foo
を実行すると, SystemStackError になってしまいます.
再定義する先がObjectでなければ(Objectのサブクラスなら)問題ないです.
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-04-08 1:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <redmine.issue-14670.20180408013936@ruby-lang.org>
2018-04-08 1:39 ` [ruby-dev:50522] [Ruby trunk Bug#14670] Objectで定義したmethod_missingでsuperが使えない keiju
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).