Hi,I’m using ruby 1.87. this problem seems to be the block context bug
1.8x, in the results array, I always got the same value, which is the
return value of the iteration .
I’ve got an object, which has multiple states. when I call each_state,
actually changing the state.
results = 
an_object.each_state do |the_object|
results << the_object
the each_state method looks like:
#blah blah, change the current state
yield(self) # I also tried self.dup, but it didnt work either.
anyone knows how to solve this?