From: nobu.nokada@... Date: 2002-07-01T02:03:34+09:00 Subject: Re: ArgumentError points to wrong line Hi, At Sat, 29 Jun 2002 05:06:34 +0900, Kero van Gelder wrote: > The line mentioned for ArgumentError is 14, but the mistake is in line 17. Try this patch. Index: eval.c =================================================================== RCS file: /cvs/ruby/src/ruby/eval.c,v retrieving revision 1.303 diff -u -2 -p -r1.303 eval.c --- eval.c 24 Jun 2002 07:20:42 -0000 1.303 +++ eval.c 30 Jun 2002 16:57:24 -0000 @@ -1860,4 +1860,5 @@ is_defined(self, node, buf) int call = nd_type(node)== NODE_CALL; + ruby_sourceline = nd_line(node); val = CLASS_OF(val); if (call) { @@ -2719,4 +2720,5 @@ rb_eval(self, n) END_CALLARGS; + ruby_sourceline = nd_line(node); result = rb_call(CLASS_OF(recv),recv,node->nd_mid,argc,argv,0); } @@ -2732,4 +2734,5 @@ rb_eval(self, n) END_CALLARGS; + ruby_sourceline = nd_line(node); result = rb_call(CLASS_OF(self),self,node->nd_mid,argc,argv,1); } @@ -2737,4 +2740,5 @@ rb_eval(self, n) case NODE_VCALL: + ruby_sourceline = nd_line(node); result = rb_call(CLASS_OF(self),self,node->nd_mid,0,0,2); break; -- Nobu Nakada