From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Zhu Zihao <all_but_last@163.com>
Newsgroups: gmane.lisp.guile.bugs
Subject: bug#65363: Missing support for (library ...) match condition in
 'cond-expand'
Date: Fri, 18 Aug 2023 19:18:16 +0800
Message-ID: <86pm3ky4lk.fsf@163.com>
Mime-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="10072"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: mu4e 1.10.5; emacs 30.0.50
To: 65363@debbugs.gnu.org
Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Fri Aug 18 13:29:57 2023
Return-path: <bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org>
Envelope-to: guile-bugs@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 <bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org>)
	id 1qWxfx-0002O7-6Y
	for guile-bugs@m.gmane-mx.org; Fri, 18 Aug 2023 13:29:57 +0200
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-guile-bounces@gnu.org>)
	id 1qWxfY-0005kM-01; Fri, 18 Aug 2023 07:29:32 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1qWxd8-0005W7-PS
 for bug-guile@gnu.org; Fri, 18 Aug 2023 07:27:02 -0400
Original-Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1qWxd8-0004Tb-HT
 for bug-guile@gnu.org; Fri, 18 Aug 2023 07:27:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qWxd8-0000Ja-Mr
 for bug-guile@gnu.org; Fri, 18 Aug 2023 07:27:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Zhu Zihao <all_but_last@163.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-guile@gnu.org
Resent-Date: Fri, 18 Aug 2023 11:27:02 +0000
Resent-Message-ID: <handler.65363.B.16923579851163@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 65363
X-GNU-PR-Package: guile
X-Debbugs-Original-To: bug-guile@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.16923579851163
 (code B ref -1); Fri, 18 Aug 2023 11:27:02 +0000
Original-Received: (at submit) by debbugs.gnu.org; 18 Aug 2023 11:26:25 +0000
Original-Received: from localhost ([127.0.0.1]:46188 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1qWxcX-0000Ih-9o
 for submit@debbugs.gnu.org; Fri, 18 Aug 2023 07:26:25 -0400
Original-Received: from lists.gnu.org ([2001:470:142::17]:54382)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <all_but_last@163.com>) id 1qWxcU-0000IT-Gn
 for submit@debbugs.gnu.org; Fri, 18 Aug 2023 07:26:24 -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 <all_but_last@163.com>)
 id 1qWxcO-0005L8-Cm
 for bug-guile@gnu.org; Fri, 18 Aug 2023 07:26:16 -0400
Original-Received: from m12.mail.163.com ([220.181.12.215])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <all_but_last@163.com>) id 1qWxcK-0003uR-6A
 for bug-guile@gnu.org; Fri, 18 Aug 2023 07:26:16 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;
 s=s110527; h=From:Subject:Date:Message-ID:MIME-Version:
 Content-Type; bh=jxqgwZmSazAq0KvB0P89QlpeZJDmaQTDbJ49ZZelTg4=;
 b=LuhIyeqdH2LTRruYevdfJu++QXS1WarXpti7gNXfR1ER4ryoo34w54EO5O47kV
 bs1rIF0fr/1QU6Prsho1dbkc+Ay63d9pKlCuUQ3cV7Gz6FvbSptG5xmot9Hi1xn3
 W7Vhcd1Onkn652DyaR3H/vEXN0HPzvsmKdL47gU+7HudQ=
Original-Received: from asus-laptop (unknown [119.123.67.67])
 by zwqz-smtp-mta-g0-1 (Coremail) with SMTP id _____wCXv89IVd9kxzW1DQ--.40031S2;
 Fri, 18 Aug 2023 19:26:01 +0800 (CST)
X-CM-TRANSID: _____wCXv89IVd9kxzW1DQ--.40031S2
X-Coremail-Antispam: 1Uf129KBjvdXoW7XFW8urWDAw1xCFy7Xr13Jwb_yoW3WFX_Gr
 WkJwsrJF18ZrW2vry5K3yI9ayxX39F9Fy5JrW0gr1Yv34rJa1fGrZFyrsYgwnFyayrX34q
 93Z5K343tw1akjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT
 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUUVTYUUUUUU==
X-Originating-IP: [119.123.67.67]
X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbBoQrPr2I0Z05m3AAAsO
Received-SPF: pass client-ip=220.181.12.215; envelope-from=all_but_last@163.com;
 helo=m12.mail.163.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, 
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_BL=0.001, RCVD_IN_MSPIKE_L4=0.001, 
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-guile@gnu.org
List-Id: "Bug reports for GUILE,
 GNU's Ubiquitous Extension Language" <bug-guile.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guile>,
 <mailto:bug-guile-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-guile>
List-Post: <mailto:bug-guile@gnu.org>
List-Help: <mailto:bug-guile-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guile>,
 <mailto:bug-guile-request@gnu.org?subject=subscribe>
Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org
Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.lisp.guile.bugs:10654
Archived-At: <http://permalink.gmane.org/gmane.lisp.guile.bugs/10654>

--=-=-=
Content-Type: text/plain

In R7RS, page 14, section 4.2.1 Conditionals. The form 'cond-expand' can
accept following conditions

```
A <feature requirement> takes one of the following forms:

- <feature identifier>
- (library <library name>)
- (and <feature requirement> ...)
- (or <feature requirement> ...)
- (not <feature requirement>)
```

The form (library <library name>) is used to test whether a R7RS library
named <library name> exists or not. For example:

```
(cond-expand
 ((library (srfi srfi-1))
  (display "Yes, we have SRFI-1.\n")))
```

However, this form is currently not supported by Guile. Supporting this
form can help Guile use portable R7RS library more smoothly.

-- Retrieve my PGP public key:

  gpg --recv-keys B3EBC086AB0EBC0F45E0B4D433DB374BCEE4D9DC

Zihao

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIsEARYIADMWIQT4UAIrVkIEZilSHr2K2nJqP6LM8gUCZN9VOBUcYWxsX2J1dF9s
YXN0QDE2My5jb20ACgkQitpyaj+izPLw+QD/d7pTeyqg22FSu6LGkOikxVIlMkpm
T0fxkGmNKy0igjkBAJ2siplfRiGUlN+Y0A259rcgXhLiQEKpSOYPuwRkDmcL
=O5vk
-----END PGP SIGNATURE-----
--=-=-=--