Dan Debertin <airboss / nodewarrior.org> writes:

> The 'thing2' clause changes the value of 'cond', so I want to be able
> to bounce back to the top and re-evaluate the case. The way I ended up
> doing it was:

Well, there's always...

     a = 1
     begin
       case a
       when 1
         puts 1
         a = 2
         redo
       when 2
         puts 2
       end
     end while false
     puts "done"

but I'm not sure that's much clearer.

Possibly you might want a simple state machine...


Dave