[Seaside] callPage question

Avi Bryant seaside@lists.squeakfoundation.org
Mon, 5 Aug 2002 19:44:24 -0700 (PDT)


On Mon, 5 Aug 2002, Julian Fitzell wrote:

> Rob Whitfield wrote:
> > Will bad things happen if my app nests a few levels down via cascaded
> > "self callPage" and then the user clicks a link that takes them directly
> > back to the top level page where they may begin to cascade back down again?
> >
> > I'm concerned about resource usage when the call stack is not properly
> > unwound via "self return".

> I'm pretty sure it isn't going to matter because it isn't really a call
> stack, it's all done with continuations.  And the continuation is going
> to get stored in the session cache anyway in case the user hits the back
> button and goes back to that page to click the link again.  So since the
> continuation would be stored whether the user uses it or not I don't
> think it's going to make any difference whether your callPage returns or
> not.

That's about right.  Put a "self halt" in and look at the call stack -
you'll see it stays quite short.