> Le 9 mai 2024 à 23:57, Damien Mattei <damien.mat...@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