From: Reginald Tan Date: 2012-07-04T09:53:32+09:00 Subject: Re: Using binding + set trace func to capture execution state Peter Zotov wrote in post #1067270: > Bartosz Dziewoński писал 03.07.2012 15:23: >> Have you tried somehow using continuations? >> >> http://www.ruby-doc.org/core-1.9.3/Continuation.html >> >> -- Matma Rex > > A continuation is basically a copy of the current call stack, somewhat > akin to fork() but with cooperative multitasking. How would it help > here? > > You cannot introspect continuations. Hi Matma, I tried using continuation approach here https://gist.github.com/3044387 but with no luck. The output is still "5 5 5". I guess that's because I'm still relying on binding to inspect the variable -- Posted via http://www.ruby-forum.com/.