[plt-scheme] local special syntax confusion

From: Psy-Kosh (psykosh at earthlink.net)
Date: Thu Jan 3 01:50:42 EST 2008

On Thu, 03 Jan 2008 01:20:49 -0500, Ryan Culpepper <ryanc at ccs.neu.edu>  

> Yes, the explicit occurrence of '#%app' in the template is replaced. And  
> it affects the '(3 5)' application, because that's in the *body* of the  
> 'let-syntax' form. The '(+ a b)' expression, however, is in the  
> *right-hand side* of the 'let-syntax' expression, which is not in the  
> scope of the new '#%app' binding. Instead, it's in the scope of the  
> binding of '#%app' as a pattern variable (via 'with-syntax').

Ooooh, I see now, thank you. I had thought you meant the body by the  
"right side", so got a bit confused about what precisely you meant, what  
was going on. Now I see it, and that answers the rest of my questions,  

Thanks again.


Posted on the users mailing list.