guile-user
[Top][All Lists]
Advanced

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

Re: with-syntax return error in Guile, not in Kawa or Racket


From: Jean Abou Samra
Subject: Re: with-syntax return error in Guile, not in Kawa or Racket
Date: Fri, 10 May 2024 00:35:32 +0200


> Le 9 mai 2024 à 23:57, Damien Mattei <damien.mattei@gmail.com> a écrit :
> 
> it worked now removing the syntax->datum but not in all programs , i do not
> know why, program it fails was overloading some operator so i think the
> syntax symbol of operator was not correlated with the good function
> overloaded.

Sorry, I don't understand what you're trying to express here.

> So i keep the code as is.
> for the cloned macro i did not succeed in other solution than duplicating
> the macro and replace <- by ←, stupid but it works now in all codes.
> In fact it is a general question, how to clone a macro? for a procedure it
> is more simple.

The simple solution

(define-syntax-rule (← . args) (<- . args))

should really work. Maybe you have several files and you forgot to clear the 
bytecode cache? Keep in mind that Guile doesn't do dependency tracking: if file 
B uses a macro defined in file A and file A changes, B won't be recompiled 
automatically, and will use the expansions from the old macros until you clear 
the cache or use --no-auto-compile or similar. This is the only explanation I 
can think of for this part of your problem.

Jean





reply via email to

[Prev in Thread] Current Thread [Next in Thread]