From: Conrad Schneiker/Austin/Contr/IBM Date: 2000-10-25T03:39:30+09:00 Subject: [ruby-talk:5826] Re: local variables (nested, in-block, parameters, etc.) John Small wrote: # 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" # To: "ruby-talk ML" # Cc: # Sent: Tuesday, October 24, 2000 11:13 AM # Subject: [ruby-talk:5821] Re: local variables (nested, in-block, parameters, # etc.) # # # > >>>>> "Y" == Yukihiro Matsumoto 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 Please follow the standard newsgroup posting convention of quoting the previously posted material that you are referring to *before* you refer to it. Conrad Schneiker (This note is unofficial and subject to improvement without notice.)