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#72366: srfi-64: on-bad-end-name-function has swapped arguments Date: Mon, 30 Sep 2024 16:04:57 +0200 Message-ID: <6e4c71b8-e46a-4358-8daf-2f6e1d9de1b5@gmail.com> 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="20923"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Tomas Volf <~@wolfsden.cz>, 72366@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Mon Sep 30 16:07:32 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 1svH3k-0005Io-EX for guile-bugs@m.gmane-mx.org; Mon, 30 Sep 2024 16:07:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1svH2m-0006Gr-CU; Mon, 30 Sep 2024 10:06: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 ) id 1svH2k-0006Cv-NM for bug-guile@gnu.org; Mon, 30 Sep 2024 10:06:31 -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 1svH2k-0005jP-EL for bug-guile@gnu.org; Mon, 30 Sep 2024 10:06:30 -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=inFlnxgUxFIHkJP3wTnNJiexUDHJ8wbsMFoAxEx/8hY=; b=cp3OdYW313asb7oVS8hXXz2HN1SL/cXMfvjVcKv2zksvvI4WTq4tukqCFnWBxW/fX7HLZec3o0kAZ5NfB6CnbwtsbI+vXLexwjr/jpW4qJONGMdyH3PlPYqnTndWSAe150F3tRWllngxaAV5AtKr997k9QgeevftbVVCVOjnKd8hBDc6yg2eZp9prO0LrXKJZaYFjHYjvH7wMFmlwUe0incpltZn+IrNyW6NZpu0DAtOAxC0ZfCPqPDeqeTZ/pZlj51VXt1DVHmatOQMfgoVdti3c5HI2sWgL+EyHMMGZ8Pgj+Ef13JTVZlq0B6gHSW2gDisnA//7pw3p4Kx0uVq1A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1svH3G-0004Cp-6W for bug-guile@gnu.org; Mon, 30 Sep 2024 10:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Taylan Kammer Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 30 Sep 2024 14:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72366 X-GNU-PR-Package: guile Original-Received: via spool by 72366-submit@debbugs.gnu.org id=B72366.172770520616154 (code B ref 72366); Mon, 30 Sep 2024 14:07:02 +0000 Original-Received: (at 72366) by debbugs.gnu.org; 30 Sep 2024 14:06:46 +0000 Original-Received: from localhost ([127.0.0.1]:45093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svH30-0004CU-Hf for submit@debbugs.gnu.org; Mon, 30 Sep 2024 10:06:46 -0400 Original-Received: from mail-wr1-f51.google.com ([209.85.221.51]:41193) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svH2s-0004CK-IC for 72366@debbugs.gnu.org; Mon, 30 Sep 2024 10:06:43 -0400 Original-Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-37cd5501ec1so242715f8f.0 for <72366@debbugs.gnu.org>; Mon, 30 Sep 2024 07:06:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727705100; x=1728309900; 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=inFlnxgUxFIHkJP3wTnNJiexUDHJ8wbsMFoAxEx/8hY=; b=fTnvEx/401Tb860MSAYES6QztX47iptmSkgaBStt857huBYV9iGcCbwVWGMGu+G4// mv8zifCfxBV2hm3CbYDU7MMor1rOZ8ve4VkyR3wzUw42hC9yLC5jAVL/f004cmd66NLW YmMuOrRrjrHQ1PqVPkaKZo/SHhqN41c5y61IJtiknC2zM1S9FHNaOqM3dTa0nnUYkG1Y Ri/BdTxR7Qkdv2oq9t2kCX3UPLGA3UDWAE4Oe++3TdImiOwTblaglUeadwCLARTE56qj UFLlQKQ7OLlOyIS2vc+fYHCTLunliVG7m8Re9EyL9LcmbnSHslC2RHZgXNysd7EhTDdK k3JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727705100; x=1728309900; 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=inFlnxgUxFIHkJP3wTnNJiexUDHJ8wbsMFoAxEx/8hY=; b=j7+mUkcpD3tOmuJsMh1uozNW1BN9wmLZk4jVvh/nc8532xCP7U+ccb50xT9FA6VyUu xAitvoNWx80XJd5g+TaJQJ4yhejeJwWRERfBO2C6zYjNoxMT/DlrMGlQrFsQpNCVXvjX nCDBcmcaVwj2POF7KaS3MUJtqy+JZRxf9771TwXDLm3UWK+NadwNFWkTJc801UcOaqE7 atWgnIqSKF8J0I/iDVAHjf70lpjvHo9h/vTYCREorXku/AojJWvf16/VNUX80cdJYOQA wbyu32x5khdGcWpnD+0XosJMTOG+N6q/PeSa+E1bwx4a6z1lkeGuCmPGWSWj/x48mA+h 1NkA== X-Forwarded-Encrypted: i=1; AJvYcCVMI+bQBuzveJJy8+XFSyaKaKlDNBFZJqMkWOwCW3VJdkL7yk2vKtaWGIr9WFXaVBUakHpSVg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YydxqbHAwZWGtyOA2row58Y+kscG+P2qsYYh/lGsdyMAIeDdTgJ mEiYG5mDlkPWV9OMSiTCqFSO2eFWyfE613LSv4GNULm1o5PxkgCB X-Google-Smtp-Source: AGHT+IGtJlb/FKJm3kYHg/i89QxPLEcPA17gOj7J76Xv6D8nkdG76IrWRy+TKGLWGQ8klOz0pF5N4A== X-Received: by 2002:a05:6000:1887:b0:378:955f:d244 with SMTP id ffacd0b85a97d-37cde544578mr1875225f8f.14.1727705099569; Mon, 30 Sep 2024 07:04:59 -0700 (PDT) Original-Received: from ?IPV6:2003:106:8f04:c300:192e:476d:8ae3:22f2? (p200301068f04c300192e476d8ae322f2.dip0.t-ipconnect.de. [2003:106:8f04:c300:192e:476d:8ae3:22f2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cd57423afsm9139813f8f.90.2024.09.30.07.04.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Sep 2024 07:04:59 -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:10995 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. > > The specification describes the on-bad-end-name-function like this: > > (on-bad-end-name-function runner begin-name end-name) > > Thus the following should print `x': > > (use-modules (srfi srfi-64)) > (let ((r (test-runner-null))) > (test-runner-current r) > (test-runner-on-bad-end-name! r > (λ (runner begin-name end-name) > (pk begin-name))) > (test-begin "x") > (test-assert #t) > (test-end "y")) > > But it does not: > > ;;; ("y") > > Have a nice day > Tomas Volf > > This is clearly a bug IMO and I've now fixed it in my implementation. I've also decided to remove the check on whether the begin-name is true, because as per spec it's not allowed to be false anyway, and IMO it should call the bad-end-name callback if the begin-name was explicitly passed as #f but the end-name is not also #f. - Taylan