On 23/11/05, Warren Brown <warrenbrown / aquire.com> wrote: > Brian, > > > I'd argue that it is not a bug, as there is no unique > > isomorphie from strings to integers. > > I have to disagree. > > >ruby -v -e "p(('1'..'10').to_a)" > ruby 1.8.2 (2004-12-25) [i386-mswin32] > ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] > > This shows a clear and unique mapping of the range '1'..'10' into a > set of strings. > > - Warren Brown > It is not unique as ruby -e "p %w(1 10 11 100 101).map { | b | b.to_i(2) }" [1, 2, 3, 4, 5] is another mapping of strings to integers that is equally valid (and would not contain '5'). Brian -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/