[plt-scheme] #%app and tail recursion

From: Stefan Ottosson (sot at lysator.liu.se)
Date: Thu Jul 17 06:40:30 EDT 2003

On Wed, 16 Jul 2003, John Clements wrote:
> Have you looked into continuation marks?  If what you want is a
> mechanism to
> track environments while preserving tail-cursion --- that is,
> environments attached
> to frames that made tail-cursive calls should disappear --- then
> continuation-marks
> are your solution.

That's is exactly what I want. Thanks!

> You wouldn't be implementing a debugger, would you?

Actually I'm porting Envdraw to DrScheme. Envdraw draws environment
diagrams a la SICP. With #%app et al I might be able to throw out the
meta-circular evaluator that Envdraw uses.

> See the docs for continuation marks, and my paper on the topic
> ('Modeling an Algebraic Stepper,' available at
> http://www.ccs.neu.edu/scheme/pubs/).

I'll read it, thanks again.

Posted on the users mailing list.