From: Pit Capitain Date: 2008-09-13T17:53:49+09:00 Subject: Re: Local variable in loop affects callcc 2008/9/12 Pinku Surana : > I hope someone familiar > with the runtime can explain why local variables are sometimes not > stored correctly. What I wanted to show with the modified example is that AFAIK local (Ruby) variables aren't restored at all. Here's another simple example: i = 0 cc = callcc { |cc| cc } puts "i is #{i}" exit if i > 0 i = 1 cc.call The output is: i is 0 i is 1 Regards, Pit