guile-user
[Top][All Lists]
Advanced

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

Re: equality of syntax objects


From: Damien Mattei
Subject: Re: equality of syntax objects
Date: Thu, 23 May 2024 15:55:36 +0200

On Thu, May 23, 2024 at 12:12 AM Maxime Devos <maximedevos@telenet.be>
wrote:

>
> So, instead of checking identifiers with free-identifier=?, instead try
> ‘syntax->datum’ to extract the name (with lexical information removed) +
> ‘eq?’ (to compare two symbols).
>

:-O yes.
i did not think it.it is the first year i use 'syntax' and co .
i modified all the code to use the procedure below and all always works:

(define (datum=? obj1 obj2)
  (eq? (syntax->datum obj1)
       (syntax->datum obj2)))


thanks


reply via email to

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