I don't know enough yet about the Ruby internals to understand
how NODE_LVAR and NODE_DVAR are implemented/interpretted.

What I was thinking of was that the break would propagate back through
the yield statement as a break in it's context and only loop the yield is
enclosed in.

John

----- Original Message -----
From: "ts" <decoux / moulon.inra.fr>
To: "ruby-talk ML" <ruby-talk / netlab.co.jp>
Cc: <ruby-talk / netlab.co.jp>
Sent: Tuesday, October 24, 2000 11:13 AM
Subject: [ruby-talk:5821] Re: local variables (nested, in-block, parameters,
etc.)


> >>>>> "Y" == Yukihiro Matsumoto <matz / zetabits.com> writes:
>
>  How do you do this ?
>
> Y>   [1,2,3].each{|i6| break if i6 % 2 == 0}
>                                 ^^
>  here you have a node NODE_DVAR
>
> Y> will be a plain local variable.
>
>  This mean that you must re-read the whole def to modify all the NODE_DVAR
>  in a NODE_LVAR, no ?
>
>
>  I've forgotten to reply to this, sorry
>
> Y> Are you (and others) going to attend Linux Expo Paris?
>
>  Unfortunately it's not possible for me.
>
>
> Guy Decoux
>
>
>
>
>