From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: taylanbayirli@gmail.com (Taylan Ulrich =?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?=) Newsgroups: gmane.lisp.guile.bugs Subject: bug#21378: R6RS guard's else chokes on multiple expressions Date: Sat, 29 Aug 2015 23:52:04 +0200 Message-ID: <877fodiwzf.fsf@T420.taylan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1440885198 10985 80.91.229.3 (29 Aug 2015 21:53:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Aug 2015 21:53:18 +0000 (UTC) To: 21378@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Aug 29 23:53:09 2015 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZVo3g-0001IS-9S for guile-bugs@m.gmane.org; Sat, 29 Aug 2015 23:53:08 +0200 Original-Received: from localhost ([::1]:54863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVo3f-0005JC-Rz for guile-bugs@m.gmane.org; Sat, 29 Aug 2015 17:53:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVo3b-0005IF-1i for bug-guile@gnu.org; Sat, 29 Aug 2015 17:53:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVo3a-0006jB-6N for bug-guile@gnu.org; Sat, 29 Aug 2015 17:53:02 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVo3a-0006j7-3K for bug-guile@gnu.org; Sat, 29 Aug 2015 17:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZVo3Z-0003n5-UI for bug-guile@gnu.org; Sat, 29 Aug 2015 17:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: taylanbayirli@gmail.com (Taylan Ulrich =?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 29 Aug 2015 21:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21378 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144088513214494 (code B ref -1); Sat, 29 Aug 2015 21:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Aug 2015 21:52:12 +0000 Original-Received: from localhost ([127.0.0.1]:42335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZVo2l-0003lh-Gf for submit@debbugs.gnu.org; Sat, 29 Aug 2015 17:52:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44992) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZVo2j-0003lY-Md for submit@debbugs.gnu.org; Sat, 29 Aug 2015 17:52:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVo2i-0006Jj-Ij for submit@debbugs.gnu.org; Sat, 29 Aug 2015 17:52:09 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVo2i-0006JZ-F7 for submit@debbugs.gnu.org; Sat, 29 Aug 2015 17:52:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVo2h-0005EK-KO for bug-guile@gnu.org; Sat, 29 Aug 2015 17:52:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVo2g-0006Ff-QK for bug-guile@gnu.org; Sat, 29 Aug 2015 17:52:07 -0400 Original-Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:33986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVo2g-0006Ed-Ib for bug-guile@gnu.org; Sat, 29 Aug 2015 17:52:06 -0400 Original-Received: by widfa3 with SMTP id fa3so6707680wid.1 for ; Sat, 29 Aug 2015 14:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=rzm/TGjw60RuX6SttHoUQxL8eJUmsArybKJ4owy/vB4=; b=oG3ag6uN1Za5fMS4f26O6qf6HSFVYRZF4WZEj41dIPzSBfD/z4USDJC+FXM9GkR40Q 23jprH4qW+UuO55+bMGqXyXWnarSb6Cie6tqsnriwVHGxr93teu9m3es5Jxel7QanQ11 MuYOynrtaskHJu025lqmfjZOcBEXfn5nzpqVhmIhMA7rN324eOcOCVI4Bmo2YtF6CKna K1zOOKYdszvifSl//2DrrXu8blMWnVqRtay9xW2aDK/1JhxNJTRXTj82KEV67V2QvXZz MGTvVixRiA2p0jqGpOC9WmpAwvD1X/QP36Ql7SIYhFtHVejik2Dwdl3NfAXDlUtpwctE c48A== X-Received: by 10.180.108.35 with SMTP id hh3mr10810303wib.48.1440885125092; Sat, 29 Aug 2015 14:52:05 -0700 (PDT) Original-Received: from T420.taylan ([2a02:908:c32:4740:221:ccff:fe66:68f0]) by smtp.gmail.com with ESMTPSA id en5sm10307041wib.18.2015.08.29.14.52.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Aug 2015 14:52:04 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7830 Archived-At: It seems that whatever macro tries to match the guard expression's else-clause, fails to do so when the clause contains more than one expression, and so adds a default "else re-raise" clause after the existing else clause. I couldn't figure out where this happens. I grepped the whole source tree for 're-raise' and only found it twice in a comment. Transcript showcasing bug: taylan@T420:~$ guile GNU Guile 2.0.11 Copyright (C) 1995-2014 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> ,use (rnrs exceptions) scheme@(guile-user)> (guard (exc (else #f #f)) #f) While compiling expression: ERROR: Syntax error: unknown file:3:12: cond: else must be the last clause in subform (else #f #f) of (cond (else #f #f) (else (re-raise))) scheme@(guile-user)> Taylan