From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Retropikzel via "Bug reports for GUILE, GNU's Ubiquitous Extension Language" Newsgroups: gmane.lisp.guile.bugs Subject: bug#40371: [R7RS] Guile does not accept library name parts that, are non-negative exact integers Date: Wed, 21 Aug 2024 10:44:05 +0300 Message-ID: <714a3dd0-9603-43ea-8df1-bd2a15b4ab9b@disroot.org> References: Reply-To: retropikzel_@disroot.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35797"; mail-complaints-to="usenet@ciao.gmane.io" To: 40371@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Wed Aug 21 10:27:52 2024 Return-path: 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 ) id 1sggh5-00095K-IS for guile-bugs@m.gmane-mx.org; Wed, 21 Aug 2024 10:27:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sggga-00057t-Ut; Wed, 21 Aug 2024 04:27:21 -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 1sgggX-00057g-Vw for bug-guile@gnu.org; Wed, 21 Aug 2024 04:27:18 -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 ) id 1sgggX-0004Cx-Lu for bug-guile@gnu.org; Wed, 21 Aug 2024 04:27:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:MIME-Version:Date:To:In-Reply-To:References:Subject; bh=HO1JqNEhG2kRW1JsxyZv0kToQmjPqiTQ3Fd/bhrtzu0=; b=HYCnLIfuaXuxZXaoHY1SN7BlVXcZ5fvnwUIhjQqv0fdhFUHxCraxc8K4wy4fDQJamD/um2nknhnef1koOxK0ONb2eITLCAxkcF+S7KUcmYNwIpX31k0x0m48bzUup5b/RkGl1qbWOSuaa/Cw/RM+CjbQqFI/6ewxT/gR2jNj53Gyt6CSUfFJKxfTCEE3vBk8hn7L1/7QjoiESpQDDfLMkBKRcAkMtvDBD2mRFPSMsipozOqTyrwuB+o9gpAIiWGnT68MqfALfERBY8ZZ74m8i+ve0RVuFva9c8SET+lG2RWGTZwy/frXHc+NiYYDW4Njjzfb2UCpIE4z174evPXYXQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sgghF-000257-On for bug-guile@gnu.org; Wed, 21 Aug 2024 04:28:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Retropikzel Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 21 Aug 2024 08:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40371 X-GNU-PR-Package: guile Original-Received: via spool by 40371-submit@debbugs.gnu.org id=B40371.17242288467936 (code B ref 40371); Wed, 21 Aug 2024 08:28:01 +0000 Original-Received: (at 40371) by debbugs.gnu.org; 21 Aug 2024 08:27:26 +0000 Original-Received: from localhost ([127.0.0.1]:34902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sgggf-00023v-T3 for submit@debbugs.gnu.org; Wed, 21 Aug 2024 04:27:26 -0400 Original-Received: from layka.disroot.org ([178.21.23.139]:45574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sgg1a-0000fY-MI for 40371@debbugs.gnu.org; Wed, 21 Aug 2024 03:44:59 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 17E6641645 for <40371@debbugs.gnu.org>; Wed, 21 Aug 2024 09:44:13 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2ETPsj9kgzH6 for <40371@debbugs.gnu.org>; Wed, 21 Aug 2024 09:44:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1724226252; bh=d+FfA97qq9CPv49S8cVC3lgWaJxXPfy4+bHgYc4w/fw=; h=Date:Reply-To:To:From:Subject; b=cw5vp3GxgkFN/3Gy5Tt1oFaQuCrYH4st/fd2R/1nmHfN7ioTzIs45VhsFIo06bcXu sPFeovmIMhD2kDxLPvpaeJkgvq+5h2Tgs+4jxl9L6FinNQNZ3EaD/2xJrcCajtx5rr KotpigX9VDAQjU8C4hcDoAB9tdAVqbGKchxWP+sDi5n0lzJ+w4gjBX2oFJMO6paWq3 YzOCuhvjYU61a58JmxqHQjpCtJM4M5hnKLAA6glMX7w7ArZ6bigNu2mfVC0y5IfAqI CGw6RloVlmZSwsE8S817+QI1h2gTheH4eMKdRBAGWmXIvmR/OtORjUGcyT+BVKmCUS cduKuz7laPQnQ== Content-Language: en-US X-Mailman-Approved-At: Wed, 21 Aug 2024 04:27:24 -0400 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-ACL-Warn: , Retropikzel 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:10956 Archived-At: I think I ran into this issue in a different place. Guile does not support the ((library (foo bar) ...) form in cond-expand, so one way around it is to have (cond-expand (srfi-N ... ) ((library (srfi N)) ...) but in a situation where srfi-N is false Guile tries to evaluate the (library ... form and errors with (in the case of N being 180): In procedure symbol->string: Wrong type argument in position 1 (expecting symbol): 180 Here is the example code: (import (scheme base) (scheme write)) (cond-expand (srfi-180 (display "I has SRFI 180 :)") (newline)) ((library (srfi 180)) (display "I has SRFI 180 :)") (newline)) (else (display "I do not has SRFI 180 :(") (newline))) It also errors without the number there, saying (switching 180 -> foo): no code for module (srfi foo)