> > > 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.
>
>
> > Thank you for the reply! Not sure what you mean. The following code
> > defi
> > 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.
>
>
> Thank you for the reply! Not sure what you mean. The following code
> defines `a`:
>compile does not evaluate (aka load) the definitions, it only compiles them.
Usually, sure, but in the code ‘#:to ‘value” was set. From the manual:
>As discussed before (see Object File Format), bytecode is in ELF format, ready
>to be serialized to disk. But when compiling Scheme at run time, yo
On 2024-06-19 09:53, Attila Lendvai wrote:
>> (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
> (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.h