> -----Original Message----- > From: Ovidiu Predescu [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 20, 2002 4:48 AM > To: [EMAIL PROTECTED] > Subject: Re: Continuations are broken? > > > On 6/19/02 12:48 PM, "Vadim Gritsenko" > <[EMAIL PROTECTED]> wrote: > > > Hi Ovidiu, and hi all, > > > > Either I did not understood continuations or they do not work as > > advertised. Walk through this test case and tell what/who is wrong: > > > > 1) Access http://localhost:8080/cocoon/samples/flow/examples/calc/ > > > > 2) Type "10", Enter. > > > > 3) See page with A = 10. > > URL is > > http://localhost:8080/cocoon/samples/flow/examples/calc/kont/3f557504821 > > 5621d3c1c32191d868b573f751c7f?a=10 > > > > 4) Open another browser window with this URL. See page with A = 10 > > > > 5) Window 1: Enter B = 10 > > URL will be: > > http://localhost:8080/cocoon/samples/flow/examples/calc/kont/1b261330647 > > 176442d5f45335c406211594a1d4f?b=10&submit=Enter > > > > 6) Window 2: Enter B = 20 > > URL will be: > > http://localhost:8080/cocoon/samples/flow/examples/calc/kont/6034270b2e1 > > 5555a6b7c4a591512417a3c3c437c?b=20 > > > > 7) Window 1: Select "plus", click "Do It" > > > > 8) See in Window 1: Result = 30. > > > > I expected to see 20, because B = 20 was entered in another window and > > went to continuation 6034270b2e15555a6b7c4a591512417a3c3c437c, and B = > > 10 should be in continuation 1b261330647176442d5f45335c406211594a1d4f, > > however, both continuations has same B = 20. > > > > > > Am I mistaken? > > No, you're not mistaken, this is the correct behavior. > > Rhino used to have the behavior you described, but Christopher > and I decided > is better to have the current one, which is more useful to real > applications. > > One effect of this change is that you can no longer implement what-if > scenarios as easy as before. Christopher and I were talking about various > solutions, but none of them is cheap enough at runtime to be worth the > effort.
What is the advantage of continuations? It seems that the calculator example has only one state ... Regards, Reinhard > > Regards, > -- > Ovidiu Predescu <[EMAIL PROTECTED]> > http://www.geocities.com/SiliconValley/Monitor/7464/ (Apache, > GNU, Emacs...) > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]