From: Domenico De Felice Date: 2005-11-05T05:27:09+09:00 Subject: Re: Some comments on new 1.9 features Trans wrote: [CUT] > 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. IMO it would be even better to use a special character in front of the name, such as for @instance and @@class attributes, to distinguish among normal and local scope. However I can't think which character would look less weird :-) maybe &d to make d local-scoped. -- Domenico