Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Continuation, callcc method is not defined

I wanted to learn something about Continuation, type several examples from some articles with callcc method and I've got the error:

NoMethodError: undefined method `callcc' for main:Object
from (pry):2:in `<main>'

None of articles have mentioned to include continuation library. So how to fix this problem? Thanks

EDIT: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

like image 710
megas Avatar asked Nov 11 '11 10:11

megas


1 Answers

You need to require 'continuation'.

require 'continuation'
like image 118
Devin Walters Avatar answered Sep 30 '22 10:09

Devin Walters