From: Alex Young Date: 2006-08-03T20:54:14+09:00 Subject: Re: Array#size empties the Array?? Sven Suska wrote: > Or, to put it directly: > Whenever rks.size was the _first_ method call on "rks", > the output was: > [:rks_size, 0] > [:rks_length, 0] > [:rks_class, Array] > [:rks_item, nil] > [:rks_length, 0] > [:rks_size, 0] > And the output was normal otherwise. (as posted in the beginning) > > Regardless of how many times a test method was repeated. > Regardless of the order of test methods. (When one method > contained the "corrupted" variant and the other did not.) > > > This all stabilizes the hypothesis, > that the Array#size method empties the array > when called as the first method after the object obtained. This may be irrelevant, but what's rks.class.ancestors? -- Alex