No commit activity in last 3 years
No release in over 3 years
An implementation of dynamic-wind for ruby's continuation. See R6RS 11.15 Control features for detail. http://www.r6rs.org/final/html/r6rs/r6rs-Z-H-14.html#node_idx_764
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.8.2
 Project Readme
= dynamicwind

* http://github.com/mame/dynamicwind/tree/master

== DESCRIPTION:

An implementation of dynamic-wind for ruby's continuation.
See R6RS 11.15 Control features for detail.
http://www.r6rs.org/final/html/r6rs/r6rs-Z-H-14.html#node_idx_764

== FEATURES/PROBLEMS:

* callcc becomes robust!

== SYNOPSIS:

require "dynamicwind"

callcc do |c|
  dynamicwind(
    proc { p :before },
    proc { p :thunk; c.call },
    proc { p :after }
  )
end
#=> :before, :thunk, :after

dynamicwind(
  proc { p :before },
  proc { callcc {|c| $c = c }; p :thunk },
  proc { p :after }
)
#=> :before, :thunk, :after

$c.call #=> :before, :thunk, :after, ...(infinite loop)

== REQUIREMENTS:

None

== INSTALL:

* gem install mame-dynamicwind

== LICENSE:

Copyright:: Yusuke Endoh <mame@tsg.ne.jp>
License:: Ruby's