From: "Peña, Botp" Date: 2002-10-07T11:21:19+09:00 Subject: Re: Specifying local and external block parameters (that old ches tnut) cannot say anything but coool... > -----Original Message----- > From: ts [mailto:decoux@moulon.inra.fr] > > >>>>> "M" == MikkelFJ writes: > > M> := assigns to local block scope, > > := assign to a variable which is always local to the block, > even if a variable with the same name exist in an outer > block. For example > > b = 12 > 1.times { b := 2 } > > `b := 2' will create a new block variable which shadow the > previous variable `b' > > M> = assigns to outside the local block scope. > > = has the same meaning than actually, if a previous > variable exist ruby > use this variable otherwise it create a variable local to the block > > M> What happens with nested scopes. > > same > > > Guy Decoux >