Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Oh right, that bit of unpleasantness. Mercifully, that's been fixed since 1.9:

   ruby-1.9.2-p0 > x = 0; xs = [1,2,3]; xs.each { |x| puts x }; puts x
   1
   2
   3
   0
   => nil


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: