From: Alexey Petrushin Date: 2008-04-17T00:27:29+09:00 Subject: Re: Continuation in web (Seaside clone) Done! :) I founded an ugly solution (closures instead of continuation). It works, looks like: All other components are the same as earlier, i just a little changed the 'View'. To complete edition user should 3 times enter something in Wizzard-like dialogs. WITH CONTINUATION IT SHOULD LOOKS LIKE: class View < Panel def initialize editor view= Label.new self, 'Value' Button.new(self, 'Edit') { first = call(editor) second = call(editor) third = call(editor) view.text = first+second+third } end end WITH MY UGLY SOLUTION IT LOOKS: class View < Panel def initialize editor view= Label.new self, 'Value' Button.new(self, 'Edit') { call(editor) { |v| first = v call(editor){ |v| second = v call(editor){ |v| third = v view.text = first+second+third } } } } end end -- Posted via http://www.ruby-forum.com/.