> (define (test-eval teval)
> (teval '(define a 1))

if you want this^ to be actually defined while compilation is
happening (i.e. in the compilation stage; see staged computing), then you need 
to use an (eval-when (expand) ...) wrapper
around it.

https://www.gnu.org/software/guile/manual/guile.html#Eval-When

compile does not evaluate (aka load) the definitions, it only compiles them.

alternatively, you yourself can explicitly call the lambda returned by compile.

--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“A politician is someone asking you to trust them more with power than they 
trust you with freedom...”
        — Kelly Diamond


Reply via email to