[plt-scheme] syntax form works in top-level env, but not when imported from module.

From: Hans Oesterholt-Dijkema (hdnews at gawab.com)
Date: Mon Nov 14 05:51:35 EST 2005

Does 'require-for-syntax'  help?

Matthias Felleisen wrote:

>
> On Nov 13, 2005, at 6:14 PM, Hans Oesterholt wrote:
>
>> (a like)
>
>
> expands into (a.is-op? 'like (lambda () (* like like))) and then is 
> checked for close-ness. Since like is not defined, the module isn't 
> well-formed.
>
> At the top-level, (a like) expands into the same code. But since 
> module isn't there, the code isn't checked for well-formedness. So an 
> unbound id is okay as long as you don't evaluate it.
>
> -- Matthias
>



Posted on the users mailing list.