Re: Problem with JPetStore

2003-03-22 Thread Santiago Gala
Christopher Oliver wrote: -Original Message- From: Sylvain Wallez [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 11:28 AM To: [EMAIL PROTECTED] Subject: Re: Problem with JPetStore Christopher says that Rhino makes no difference between object types and primitive types. Now if we

Re: Problem with JPetStore

2003-03-21 Thread Sylvain Wallez
Christopher Oliver wrote: Sylvain Wallez wrote: snip/ Does JavaScript, like Java, make a difference between primitive types (stored by value on the stack) and object types (stored by reference) ? My understanding after some tests is that a difference is made. No, there shouldn't be any

Re: Problem with JPetStore

2003-03-21 Thread Tony Collen
On Fri, 21 Mar 2003, Sylvain Wallez wrote: Christopher Oliver wrote: Sylvain Wallez wrote: snip/ Does JavaScript, like Java, make a difference between primitive types (stored by value on the stack) and object types (stored by reference) ? My understanding after some tests is that a

Re: Problem with JPetStore

2003-03-21 Thread Christopher Oliver
Sylvain Wallez wrote: Christopher Oliver wrote: Sylvain Wallez wrote: snip/ Does JavaScript, like Java, make a difference between primitive types (stored by value on the stack) and object types (stored by reference) ? My understanding after some tests is that a difference is made. No,

Re: Problem with JPetStore

2003-03-21 Thread Sylvain Wallez
Christopher Oliver wrote: Sylvain Wallez wrote: Here's my test (see below). I modified the viewCategory function in PetStore to track the value of skipResults, and observed that when you use the browser back button and then reload the page, skipResults is correctly restored but not foo.skip

Re: Problem with JPetStore

2003-03-21 Thread Sylvain Wallez
Tony Collen wrote: On Fri, 21 Mar 2003, Sylvain Wallez wrote: Christopher Oliver wrote: Sylvain Wallez wrote: snip/ Does JavaScript, like Java, make a difference between primitive types (stored by value on the stack) and object types (stored by reference) ? My understanding

RE: Problem with JPetStore

2003-03-21 Thread Christopher Oliver
-Original Message- From: Sylvain Wallez [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 11:28 AM To: [EMAIL PROTECTED] Subject: Re: Problem with JPetStore Christopher says that Rhino makes no difference between object types and primitive types. Now if we consider primitive types

Problem with JPetStore

2003-03-19 Thread Sylvain Wallez
Hi, I'm playing and digging in flow-enabled petstore (BTW, so nice, I love it), and experienced some problems with the continutation-enabled prev/next navigation. To reproduce it, go to the dogs area, click next once and then hit the browser's reload button. The prev and next links are now

Re: Problem with JPetStore

2003-03-19 Thread Christopher Oliver
Sylvain Wallez wrote: Hi, I'm playing and digging in flow-enabled petstore (BTW, so nice, I love it), and experienced some problems with the continutation-enabled prev/next navigation. To reproduce it, go to the dogs area, click next once and then hit the browser's reload button. The prev and

Re: Problem with JPetStore

2003-03-19 Thread Sylvain Wallez
Christopher Oliver wrote: Sylvain Wallez wrote: Hi, I'm playing and digging in flow-enabled petstore (BTW, so nice, I love it), and experienced some problems with the continutation-enabled prev/next navigation. To reproduce it, go to the dogs area, click next once and then hit the browser's

Re: Problem with JPetStore

2003-03-19 Thread Christopher Oliver
Sylvain Wallez wrote: Christopher Oliver wrote: Sylvain Wallez wrote: Moreover, AFAIU, the productList variable in viewCategory() is stored in the continuation, and so if we hit next and then prev, the first list exists twice (in different continuations). Isn't there a potential memory

Re: Problem with JPetStore

2003-03-19 Thread Sylvain Wallez
Christopher Oliver wrote: Sylvain Wallez wrote: Christopher Oliver wrote: Sylvain Wallez wrote: Moreover, AFAIU, the productList variable in viewCategory() is stored in the continuation, and so if we hit next and then prev, the first list exists twice (in different continuations). Isn't

Re: Problem with JPetStore

2003-03-19 Thread Christopher Oliver
Sylvain Wallez wrote: Christopher Oliver wrote: Sylvain Wallez wrote: Christopher Oliver wrote: Sylvain Wallez wrote: The call frames that represent the calls to f() and g() are shared between all continuations captured inside h(). But when a continuation escapes the while loop and returns