[plt-scheme] syntax form works in top-level env, but not when imported from module.
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
>