From: "David A. Black" Date: 2009-11-10T02:19:43+09:00 Subject: Re: Ruby doesn't implement x++ for Fixnum's because ??? Hi -- On Tue, 10 Nov 2009, Aldric Giacomoni wrote: > Marnen Laibow-Koser wrote: >> Aldric Giacomoni wrote: >>> Marnen Laibow-Koser wrote: >>> >>>> Would you? Or would you rather see >>>> count = blahblahblah.count do |args| >>>> lots_of_stuff >>>> condition >>>> end > > a = [1,2,3,4] > b = 0 > # 'nip' is undefined outside the block > irb(main):393:0> b = a.size do |nip| > irb(main):394:1* puts nip * 2 > irb(main):395:1> nip > 6 > irb(main):396:1> end > => 4 > irb(main):397:0> b = a.size do |nip| > irb(main):398:1* puts nip * 2 > irb(main):399:1> nip < 6 > irb(main):400:1> end > => 4 > > I don't understand this block. > Aussi, si je puis me permettre - le Francais est une langue, et Ruby est > un langage (de programmation). Yet another one of those french > subtleties! http://dablog.rubypal.com/2007/4/17/the-l-in-dsl-langue-ou-langage :-) (Not the same topic obviously but your comment made me think of it.) David -- The Ruby training with D. Black, G. Brown, J.McAnally Compleat Jan 22-23, 2010, Tampa, FL Rubyist http://www.thecompleatrubyist.com David A. Black/Ruby Power and Light, LLC (http://www.rubypal.com)