From: Trans Date: 2005-11-05T04:22:09+09:00 Subject: Re: Some comments on new 1.9 features Trans wrote: > The comment was simply that, to indicate what the semi-colon is doing. > It has no function. Nonetheless to me its a good indication of a better > way: > > d = 2 > a = lambda{|d| local d = 1} > a.call() > d # => 2 > > Self commenting. Sorry, that should be d = 2 a = lambda{|d| d = 1} a.call() d # => 2 Otherwise: d = 2 a = lambda{|d| share d = 1} a.call() d # => 1 T.