Re: equality of syntax objects

Damien Mattei <[email protected]>
Newsgroups gmane.lisp.guile.user
Message-ID <CADEOadcGhx2kWi07cuiXzMjv5fdJdVbhjP1P7QpF5hUys-CfSw@mail.gmail.com>
On Thu, May 23, 2024 at 12:12 AM Maxime Devos <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.