From: "Bartosz Dziewoński" Date: 2011-10-05T05:46:26+09:00 Subject: Re: Local vs method vs instance (was: Operator Overloading) 2011/10/4 Jesús Gabriel y Galán : > 2011/10/4 Bartosz Dziewoński : >> 4. Block arguments and block-local variables > > Block arguments and block local variables are local to the block > scope, not the method. If I understand the discussion correctly, the fact to what scope exactly they are local doesn't matter; once it's defined, bareword reference will resolve to the variable, not the method anymore. Of course, after the block it will resolve to the method again. irb(main):002:0> def x; 'foo'; end => nil irb(main):003:0> x => "foo" irb(main):004:0> 3.times{|x| p x} 0 1 2 => 3 >> 5. Stabby Lambda variables > > What do you mean by this? Regular lambda: a = lambda{|x,y| x+y} - it cant have, for example, default value for arguments. "Stabby" lambda, or "arrow" lambda: a = ->(x=5, y=6){x+y} = as you can see, it's arguments work just like function's ones. >> 6. Rescue exception naming (rescue StandardError => err) > > Kind of assignment :-) Well, certainly not a regular one ;) -- Matma Rex