[gambit-list] macro problems

lowly coder lowlycoder at huoyanjinjing.com
Thu Aug 13 05:46:11 EDT 2009


The following confuses me even more:

(define-macro (test)
  (define bar 3)
  (pp (eval '(+ 1 2)))
  (pp bar)
  (pp (eval 'bar)))

(test)


On Thu, Aug 13, 2009 at 2:39 AM, lowly
coder<lowlycoder at huoyanjinjing.com> wrote:
> (define foo 2)
> (pp (eval 'foo))
>
>
> (define-macro (test)
>  (define bar 3)
>  (pp (eval 'bar)))
>
> ;(test)
>
>
> why does (test) fail? it confuses me why the eval works in foo but not in bar
>
> Thanks!
>



More information about the Gambit-list mailing list