From d616f6005c9ca66db6d1aea08d7235a00f7fab58 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 14 Jun 2003 13:41:29 +0000 Subject: [PATCH] * eval.c (method_arity): should handle NODE_BMETHOD and NODE_DMETHOD. [ruby-core:01138] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 19 ++++++++++++------- eval.c | 3 +++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 852244c714..06019849f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Jun 14 17:59:59 2003 Guy Decoux + + * eval.c (method_arity): should handle NODE_BMETHOD and + NODE_DMETHOD. [ruby-core:01138] + Fri Jun 13 09:24:39 2003 Shugo Maeda * lib/net/ftp.rb (storebinary): seek correctly. Thanks, William Webber. @@ -6,18 +11,18 @@ Fri Jun 13 09:24:39 2003 Shugo Maeda Tue Jun 10 14:26:30 2003 why the lucky stiff - * ext/syck/token.c: preserve newlines prepended to a block. + * ext/syck/token.c: preserve newlines prepended to a block. - * ext/syck/implicit.c (syck_match_implicit): added !merge and !default. + * ext/syck/implicit.c (syck_match_implicit): added !merge and !default. - * lib/yaml/constants.rb: remove '\z' escape. + * lib/yaml/constants.rb: remove '\z' escape. - * lib/yaml/emitter.rb: ensure reset of @seq_map shortcut flag. + * lib/yaml/emitter.rb: ensure reset of @seq_map shortcut flag. - * lib/yaml/encoding.rb: remove Unicode translation methods. + * lib/yaml/encoding.rb: remove Unicode translation methods. - * lib/yaml/rubytypes.rb: improved round-tripping of Strings. - [ruby-core:1134] + * lib/yaml/rubytypes.rb: improved round-tripping of Strings. + [ruby-core:1134] Tue Jun 10 01:07:54 2003 Yukihiro Matsumoto diff --git a/eval.c b/eval.c index 101a27149e..04697f48a5 100644 --- a/eval.c +++ b/eval.c @@ -7444,6 +7444,9 @@ method_arity(method) return INT2FIX(1); case NODE_IVAR: return INT2FIX(0); + case NODE_BMETHOD: + case NODE_DMETHOD: + return block_arity(method); default: body = body->nd_next; /* skip NODE_SCOPE */ if (nd_type(body) == NODE_BLOCK)