Specifying local and external block parameters (that old ches tnut)

cannot say anything but coool…

···

-----Original Message-----
From: ts [mailto:decoux@moulon.inra.fr]

:= 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’

= 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

What happens with nested scopes.

same

Guy Decoux