hello Mikael,
hello Robby,
yes my infix evaluator _with_ precedence is more complex than evaluating a
single var. What became your macro Mikael in case of an expression? , in my
original code ,now, i'm passing all vars quoted, so i need to evaluate the
whole expression, because evaluating special
(However, I suspect that you didn't *really* mean (quote var) in your
original code, or? If you didn't, then of course my simpler syntax-rules
macro isn't what you want.)
On Wed, Apr 26, 2023 at 7:20 PM Mikael Djurfeldt
wrote:
> How about:
>
> (define-syntax eval-var
> (syntax-rules ()
> (
How about:
(define-syntax eval-var
(syntax-rules ()
((_ var) var)))
?
Then you don't need to import (ice-9 local-eval) and re-export things from
there.
Just for elucidation:
The reason why we chose the syntax-case macro system for Guile was that it
*both* gives you hygiene *and* quite a
Damien Mattei writes:
> i can not make it run i always have something unbound , not reach the var i
> but local-eval is unbound now?
I added this line to the module definition
#:re-export (local-eval the-environment)
Did you also add that? The way the unhygienic macros work, it
essentiall
i can not make it run i always have something unbound , not reach the var i
but local-eval is unbound now?
On Mon, Apr 24, 2023 at 6:24 PM Damien Mattei
wrote:
> thank you, i will try the old macro form.
> Damien
>
> On Mon, Apr 24, 2023 at 4:24 PM Robby Zambito
> wrote:
>
>>
>> Whoops I had a