From: Patrick Li Date: 2008-08-23T01:11:22+09:00 Subject: Re: Saving the state of a Thread? Thanks for the replies. Alright so I have some thoughts now: def start status = 0 doSomething() status = 1 doSomethingElse() status = 2 doMore() status = 3 cleanup() end So if I know the status of a thread, (ie. status = 2), and I know the values of the local variables. Is there way I can "jump" to that line in the method? Amalgalite: I'm not sure if I got your point. It seems to be a SQLite library for Ruby? @shadowfirebird: Yes, that's the most straightforward way of doing it. But I'm trying to write a framework that will relieve programmers of having to save state information manually. ie. I'm trying to convert this: stateVar = 124 def update if(stateVar == 0) then doStuff(); stateVar = 1 if(stateVar == 1) then doMoreStuff(); stateVar = 2 if(stateVar == 2) then cleanup(); stateVar = 3 end Into This: start doStuff() doMoreStuff() doEvenMore() cleanup() endProgram() -- Posted via http://www.ruby-forum.com/.