From: Damien Mattei <damien.mattei@gmail.com>
To: Maxime Devos <maximedevos@telenet.be>
Cc: guile-user <guile-user@gnu.org>
Subject: Re: equality of syntax objects
Date: Thu, 23 May 2024 15:55:36 +0200 [thread overview]
Message-ID: <CADEOadcGhx2kWi07cuiXzMjv5fdJdVbhjP1P7QpF5hUys-CfSw@mail.gmail.com> (raw)
In-Reply-To: <20240523001202.SNC02C00D1JCEDt06NC2dD@albert.telenet-ops.be>
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
prev parent reply other threads:[~2024-05-23 13:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-20 11:42 equality of syntax objects Damien Mattei
2024-05-20 14:53 ` Damien Mattei
2024-05-20 21:21 ` Damien Mattei
2024-05-22 22:12 ` Maxime Devos
2024-05-23 13:55 ` Damien Mattei [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADEOadcGhx2kWi07cuiXzMjv5fdJdVbhjP1P7QpF5hUys-CfSw@mail.gmail.com \
--to=damien.mattei@gmail.com \
--cc=guile-user@gnu.org \
--cc=maximedevos@telenet.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).