From: timsuth@... (Tim Sutherland) Date: 2002-02-06T09:01:04+09:00 Subject: Re: Call/CC and Ruby iterators. In article <3c621958.43511656@nntp.interaccess.com>, Thaddeus L Olczyk wrote: >Reading about call/cc in Scheme I get the impression that it is very >like Ruby's iterators. >Not being an expert in others I thought I would ask. No. Ruby's ``iterators'' just call a closure repeatedly. The 'callcc' method in Ruby is equivalent to Scheme's call/cc. Ruby [1, 2, 3].map { |x| x+1 } Scheme (map (lambda (x) (+ x 1)) (list 1 2 3)) Others will be better at explaining what call-with-current-continuation actually does. There have been some good descriptions on this newsgroup previously. (groups.google.com should have these.) -- Laugh and the world laughs with you, snore and you sleep alone.