[#5563] Non-overridable and non-redefinable methods — Eric Mahurin <eric_mahurin@...>

Lately, I've been thinking about the future of ruby

44 messages 2005/08/19
[#5564] Re: Non-overridable and non-redefinable methods — Austin Ziegler <halostatue@...> 2005/08/19

On 8/19/05, Eric Mahurin <eric_mahurin@yahoo.com> wrote:

[#5571] Re: Non-overridable and non-redefinable methods — Eric Mahurin <eric_mahurin@...> 2005/08/19

--- Austin Ziegler <halostatue@gmail.com> wrote:

[#5574] Re: Non-overridable and non-redefinable methods — TRANS <transfire@...> 2005/08/20

Just wanted to add a few things.

[#5581] Re: Non-overridable and non-redefinable methods — Austin Ziegler <halostatue@...> 2005/08/20

On 8/19/05, TRANS <transfire@gmail.com> wrote:

[#5583] Re: Non-overridable and non-redefinable methods — "David A. Black" <dblack@...> 2005/08/20

Hi --

[#5585] Re: Non-overridable and non-redefinable methods — Eric Mahurin <eric_mahurin@...> 2005/08/20

--- "David A. Black" <dblack@wobblini.net> wrote:

[#5609] Pathname#walk for traversing path nodes (patch) — ES <ruby-ml@...>

Here is a small addition to Pathname against 1.9, probably suited

20 messages 2005/08/22

Re: [BUG] bug in variable assignment

From: nobuyoshi nakada <nobuyoshi.nakada@...>
Date: 2005-08-08 02:36:22 UTC
List: ruby-core #5538
Hi,

At Mon, 8 Aug 2005 01:42:38 +0900,
Mauricio Fern疣dez wrote in [ruby-core:05536]:
> $ ~/ruby1.9/bin/ruby -e "->(&b){}.call(1); p 1 " -e:1: [BUG]
> bug in variable assignment ruby 1.9.0 (2005-08-06)
> [i686-linux]
> 
> Aborted $ ~/ruby1.9/bin/ruby -e "-> a,&b{}.call(1); p 1 "
> -e:1: [BUG] bug in variable assignment ruby 1.9.0
> (2005-08-06) [i686-linux]
> 
> Aborted

Does this fix it?


Index: eval.c
===================================================================
RCS file: /cvs/ruby/src/ruby/eval.c,v
retrieving revision 1.811
diff -U2 -p -u -r1.811 eval.c
--- eval.c 5 Aug 2005 00:50:46 -0000 1.811
+++ eval.c 8 Aug 2005 02:34:27 -0000
@@ -5270,4 +5270,11 @@ assign(self, lhs, val, pcall)
 	break;
 
+ case NODE_BLOCK:
+ lhs = lhs->nd_head;
+ if (nd_type(lhs) == NODE_ARGS) {
+ formal_assign(self, lhs, 1, &val, 0);
+ break;
+ }
+
       default:
 	rb_bug("bug in variable assignment");


-- 
Nobu Nakada


In This Thread