From: "Ara.T.Howard" Date: 2005-11-24T00:05:32+09:00 Subject: Re: [BUG] string range membership On Wed, 23 Nov 2005, Warren Brown 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. but where do '01', '001', and '0001' go? they too, are in the set of strings. regards. -a -- =============================================================================== | ara [dot] t [dot] howard [at] noaa [dot] gov | all happiness comes from the desire for others to be happy. all misery | comes from the desire for oneself to be happy. | -- bodhicaryavatara ===============================================================================