From: RK Sentinel Date: 2009-01-17T21:14:38+09:00 Subject: Re: Son of 10 things! (1.8 to 1.9 transition) David A. Black wrote: > Hi -- > > On Sat, 17 Jan 2009, RK Sentinel wrote: > >> >> and I hope to keep the rework to a minimum when porting to 1.9. He >> checked out and confirmed it _does_ return a Fixnum in 1.9. >> >> (i.e, ?\C-a or ?\M-a etc.) >> >> So apparently that was wrong information. > > I believe so: > > $ irb19 > irb(main):001:0> ?a > => "a" > irb(main):002:0> RUBY_DESCRIPTION > => "ruby 1.9.1 (2008-12-30 patchlevel-0 revision 21203) > [i386-darwin9.5.0]" > > >> One piece of feedback: >> >> David, when you say "In 1.8, X == 1 and now in 1.9, X == 2 " it would >> help us if you would say what we should now do to get the earlier >> result. > > Do you mean the block examples? The semantics are so different that > it's hard to discuss it in terms of emulating 1.8 behavior. For > example: > No, the x example I mentioned was just an example. I meant more like the fact that: str[0] no longer gives a Fixnum. So now the reader is wondering: how do i get my Fixnum. The case of the ":" is okay - just remove it. Thanks, Sent. -- Posted via http://www.ruby-forum.com/.