This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
sum = 0 [1, 2, 3, 4].each do |value; square| #-- IDENTIFIER SQUARE IS NOT VALID TO GET square = value * value # this is a different variable sum += square end puts sum puts square !! According to Ruby 1.9 feature (block local variable) i's valid Sincerely, Alexander