Hey Giles,
i think that the problem is not that continuations are weird, but
that computerscientists are not very creative at inventing helpful
names.
So i would call it a frozen_computation_state or frozen_environment
because that is what a continuation object represents.
And the call-with-current-continuation (callcc) really makes no
exception when a part of the environment is dedicated to rspec.
When you send 'call' to the continuation object, the environment
will be set to the state that is represented by the continuation
object - the variable with the name continuation points to nil and
the next step in evaluation is line 13 in your spec file.
Matthias Hennemeyer
Am 01.03.2008 um 18:37 schrieb Giles Bowkett:
I appear to have written code which travels backwards through time:
http://www.vimeo.com/742590
This disturbs me immensely. If anyone can explain it, that would be
cool.
I think it's an illusion brought about by how RSpec wraps the code it
executes, and by the sheer weirdness of continuations.
--
Giles Bowkett
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com
Podcast: http://hollywoodgrit.blogspot.com
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users