[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: define-macro bug?





On Mon, 22 Apr 2002, Matthias Felleisen wrote:

> 
> MzScheme now respects the phase separation between macros and values that
> should have existed a long time ago. Try this
> 
>  (define-macro egg (let ([foo (lambda x x)]) (lambda (x) foo)))
> 
> and you will see that foo is reachable from within a macro. 

Oh, I like this construction very much.  However, problem was having
GLOBALLY defined foo to be accessible inside macro body.

Zbyszek