From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Taylan Kammer Newsgroups: gmane.lisp.guile.bugs Subject: bug#72382: srfi-64: test-with-runner requires some decl-or-expr Date: Wed, 2 Oct 2024 01:02:13 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18779"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Tomas Volf <~@wolfsden.cz>, 72382@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Wed Oct 02 01:04:26 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 1svluq-0004do-PF for guile-bugs@m.gmane-mx.org; Wed, 02 Oct 2024 01:04:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1svluX-00079s-Mq; Tue, 01 Oct 2024 19:04:05 -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 1svluW-00079k-DA for bug-guile@gnu.org; Tue, 01 Oct 2024 19:04:04 -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 1svluW-0007St-4w for bug-guile@gnu.org; Tue, 01 Oct 2024 19:04:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=g416/uViynYHEdr/8r+rXlmYyyM9/QblOIXrYhJGSQs=; b=i6kWIjQ4XU8wTxWB023nyOU9mYXlRvHXxiU9TsbeXP2q0BUeAIOxVs5TFqbIFXYL01X2fKsC2rzVdBLZ+ypNqKzkbIg/Vf1fe4vUA8Gvdl1PlCVRASD2a1P4Y9SIqz/yMROBCzuXg1qCj8HWfWHDnK017eq2dOL/Crq1ubblsX1x+s40BUgnmlpWVH9huMTKsIw0E6vx27D+o2Mu86feWUzweXQ8QBcpC53eshIqjHST5P37Fk+jpLuwLoT1mLR2ZAi4U9v3SegdFGHgulIaRbX9Isjv9famRCyj4VZAX8+WvaDeyxsTsia5vVrpeRqB6gjOZBZxb9FJ+m+5mlQu8A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1svluU-0007YQ-Ff for bug-guile@gnu.org; Tue, 01 Oct 2024 19:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Taylan Kammer Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 01 Oct 2024 23:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72382 X-GNU-PR-Package: guile Original-Received: via spool by 72382-submit@debbugs.gnu.org id=B72382.172782381229022 (code B ref 72382); Tue, 01 Oct 2024 23:04:02 +0000 Original-Received: (at 72382) by debbugs.gnu.org; 1 Oct 2024 23:03:32 +0000 Original-Received: from localhost ([127.0.0.1]:54230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svltz-0007Y2-Ne for submit@debbugs.gnu.org; Tue, 01 Oct 2024 19:03:32 -0400 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:41772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svltw-0007Xu-AQ for 72382@debbugs.gnu.org; Tue, 01 Oct 2024 19:03:30 -0400 Original-Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-37cdae9e107so307967f8f.3 for <72382@debbugs.gnu.org>; Tue, 01 Oct 2024 16:03:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727823743; x=1728428543; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=g416/uViynYHEdr/8r+rXlmYyyM9/QblOIXrYhJGSQs=; b=NKKGO8dwTi0mvBZargBxy+5r+f2dxgavibf9vSFn4RDKtjB28iIGAynABE/qDbFH+A Kk+7fayLXg9i7+5b1rOLATzuJTAH406MmoTnYtcIm5scWqM3CUc+tgK1QVuEZ2u662zJ lB/NcLv81/fSsXyIzulyEUXLBGZNGqC05i9AJ9WJ2Ca9zTD+vDvz21MmDTyW8oG/Ieds 34VDqh32iMA1WNw3i3DKtjW8Nrc90XAOmZ//bUXxWdpfw4OmXLf5MtyEHhLrXNKw8st4 pZi9eOYxU4W+meentvcpG+2W9/BwCgvn36UUkm2V209gR2nHDQS4W+yexgZTJZ+VwTqv PM2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727823743; x=1728428543; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=g416/uViynYHEdr/8r+rXlmYyyM9/QblOIXrYhJGSQs=; b=pXl9RTZ1zhHIqYJQvB7YJMpJJYCRVsT3W/7l0so1mx342nR9dgWnQ7iRSac3VclK9s WDrn4gDfVtLYWFAcf1zvPxSw2n2YyZI9fIttR/NvmmHsDbMNk95n3ZjqEAYnBnn6sqE7 WGBBnTftnpykem9X2YcMhYoG9c/x3Fxz+vLk3KHjohAZJALi2sgIG8XyZ37zgUOnENu3 YsScLfopRfa8ylz1YftRZJSRRxwim7f3y7jAQ5r6bhADm/m9puW2FODpbQYSJV/s7IAN LO6q1o/QrzwRZg3qGPLpvGhNhhJfs+1lQOLuqQOW33rQhEUZ3GSUy6QbX7U7VET9AUPM gEYg== X-Forwarded-Encrypted: i=1; AJvYcCVBDV2SygDkxNoPRlccaJscLSDGsD7jiGi3VT1FP8E5y0eEuuZam38Ui9a30maRD89w/5/MHA==@debbugs.gnu.org X-Gm-Message-State: AOJu0Ywl1ak3RZM5i+CJzbenGV/g3nQVdZIRIOE2T8cc1axum8/OJgb8 QY1ag2eQPPqTQuqIF9vCKerrlCvFEChhBymDvKCb8ouVwH0IWqDcgZB6VLbgmbI= X-Google-Smtp-Source: AGHT+IHai3JIJMt6upot8z2YwRv8zKq2dkvFvKWfinvlencZVpWdrSCkSQvRwynN5TNYdXihA0vfgQ== X-Received: by 2002:a5d:64aa:0:b0:374:cef0:fd2a with SMTP id ffacd0b85a97d-37cfb8cf26emr465614f8f.7.1727823742574; Tue, 01 Oct 2024 16:02:22 -0700 (PDT) Original-Received: from ?IPV6:2003:106:8f04:c300:95ac:529d:6db3:196b? (p200301068f04c30095ac529d6db3196b.dip0.t-ipconnect.de. [2003:106:8f04:c300:95ac:529d:6db3:196b]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a93c27c70dfsm779672166b.52.2024.10.01.16.02.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Oct 2024 16:02:19 -0700 (PDT) Content-Language: en-US In-Reply-To: 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: , 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:11013 Archived-At: On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > test-with-runner has following signature: > > (test-with-runner runner decl-or-expr ...) > > That, according to syntax-case rules (and how test-apply works with the same > definition) should mean that it accepts 0 or more decl-or-expr. However that > does not seem to be the case: > > (use-modules (srfi srfi-64)) > (let ((r (test-runner-null))) > (test-with-runner r)) > > Leading to: > > ;;; Syntax error: > ;;; unknown location: lambda: bad lambda in form (lambda ()) > ice-9/psyntax.scm:2824:12: In procedure syntax-violation: > Syntax error: > unknown location: lambda: bad lambda in form (lambda ()) > > Have a nice day > Tomas Volf > > Should be easy to fix by adding a preceding arm to the syntax-rules, explicitly handling the case of zero decl-or-expr elements as a no-op. I've just done that in my implementation:     https://codeberg.org/taylan/scheme-srfis/commit/5e34f47f383fd5a35c88a52bd1d32a65a49b7f0a - Taylan