From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Damien Mattei Newsgroups: gmane.lisp.guile.user Subject: Re: equality of syntax objects Date: Thu, 23 May 2024 15:55:36 +0200 Message-ID: References: <20240523001202.SNC02C00D1JCEDt06NC2dD@albert.telenet-ops.be> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32348"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user To: Maxime Devos Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Thu May 23 15:56:45 2024 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sA8w0-00089H-RX for guile-user@m.gmane-mx.org; Thu, 23 May 2024 15:56:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sA8vL-0001K3-9r; Thu, 23 May 2024 09:56:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sA8vC-0001EY-GJ for guile-user@gnu.org; Thu, 23 May 2024 09:55:54 -0400 Original-Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sA8v7-0007nO-I1 for guile-user@gnu.org; Thu, 23 May 2024 09:55:52 -0400 Original-Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-7949f39ce4eso84625985a.3 for ; Thu, 23 May 2024 06:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716472548; x=1717077348; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=eJ4i72HsrACTRWC4Nl/E+G1fcoC1T5nIZyOh6RwX8jw=; b=FoNIr9Mr5JwXUEn/bIIglYP7Q9C/hQ8OQZmxCgPRF2LZbiXpviX6l5aH+CaGC+Sf2t l+LWnRbZNWMmPhVrjADKxL4Ecg9s9Qh8ni9UtqjPboTlawNOMcuz3i4O+KGNNt2sN4Bx MjLTYUmTni1rawbKG06db7/bWcAVotURbPPdBCNuFLX53HPDJKB4U1tnLpmS1d7Nnhdw Kmo4AN2nU+dp61vkonmlduIwQJk+EHFCVXl6zpkS0pGvxIXYUgjTpmNuM59zdeQoWHqZ aFhVvB/J2Y+rGlfKrg9exppCOm6ySVNR5J0eUJrAF9H0FW8BmHWhXUs91OdG24YOvs8Z b9uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716472548; x=1717077348; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eJ4i72HsrACTRWC4Nl/E+G1fcoC1T5nIZyOh6RwX8jw=; b=fKhhvA2/mDX2SIWHKsS+hqlc0RARgHWQKPgQcbuZJnZQUHBSZ5vM/FAAWU8bzRWaZ1 bypFJhuRljnmP2M0dEzYdsq356JAMbragnlBMuvu9MutuBQnLyqX3WpoKZI2b/TMSKkm K9iAjHKVBFrR+4pVtc9JUQXsL/nXZpKjtS03X5JSmKYpQ0YXNbO+KeloA6nQInDk04ue yyHOk0zgGX867NJMNM8AUVHUXMb6EMAmOprDfR2NFMu1gXRxxwxROTPokfk5pzFZHJPv kIP1g6O8+U2i1sAgsdV4zaUWPEEi3cGeWapYl/xbpZcNP3WFaRFwztaJgtFdCU369rwI M+yQ== X-Gm-Message-State: AOJu0YwFnzdVoq2UmevTvSPnls/ZqYTsmL7mhhAwBsBeclAF7noisF/a T+twpo1Xe694ceciBB3iDWWKv9IkQTuJ8BysEzuAz/Fi0oP57F4wb3Yuyvri1sAbEqElkzxWXMo 0f+ocVTAwN8mxub6LpcZ8iWaNogy4efwB X-Google-Smtp-Source: AGHT+IGaytgUoseq+U6Y/wtw5I9hKPl3jWXaXUOZQK8v8ENdgdAtXZC9L//kl7kQXFSgEXcBjDbuv1K+BbUluWJY7gQ= X-Received: by 2002:a05:620a:12d0:b0:794:7fe1:c983 with SMTP id af79cd13be357-79499456700mr605102485a.39.1716472547742; Thu, 23 May 2024 06:55:47 -0700 (PDT) In-Reply-To: <20240523001202.SNC02C00D1JCEDt06NC2dD@albert.telenet-ops.be> Received-SPF: pass client-ip=2607:f8b0:4864:20::72b; envelope-from=damien.mattei@gmail.com; helo=mail-qk1-x72b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19685 Archived-At: On Thu, May 23, 2024 at 12:12=E2=80=AFAM Maxime Devos wrote: > > So, instead of checking identifiers with free-identifier=3D?, instead try > =E2=80=98syntax->datum=E2=80=99 to extract the name (with lexical informa= tion removed) + > =E2=80=98eq?=E2=80=99 (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=3D? obj1 obj2) (eq? (syntax->datum obj1) (syntax->datum obj2))) thanks