From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.lisp.guile.bugs Subject: bug#12341: define does not support lambda shorthand notation, define-public does Date: Mon, 03 Sep 2012 20:05:25 +0200 Message-ID: <87ligrhti2.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1346695595 31430 80.91.229.3 (3 Sep 2012 18:06:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Sep 2012 18:06:35 +0000 (UTC) To: 12341@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Sep 03 20:06:36 2012 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 1T8b2h-0007Ca-Cb for guile-bugs@m.gmane.org; Mon, 03 Sep 2012 20:06:35 +0200 Original-Received: from localhost ([::1]:45508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8b2e-0006nE-9n for guile-bugs@m.gmane.org; Mon, 03 Sep 2012 14:06:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8b2b-0006n9-SD for bug-guile@gnu.org; Mon, 03 Sep 2012 14:06:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8b2a-0008EO-W5 for bug-guile@gnu.org; Mon, 03 Sep 2012 14:06:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8b2a-0008EC-SN for bug-guile@gnu.org; Mon, 03 Sep 2012 14:06:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T8b45-0003xI-TE for bug-guile@gnu.org; Mon, 03 Sep 2012 14:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Kastrup Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 03 Sep 2012 18:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12341 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.134669564815155 (code B ref -1); Mon, 03 Sep 2012 18:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Sep 2012 18:07:28 +0000 Original-Received: from localhost ([127.0.0.1]:36696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T8b3X-0003wN-Bo for submit@debbugs.gnu.org; Mon, 03 Sep 2012 14:07:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39955) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T8b3U-0003wG-Di for submit@debbugs.gnu.org; Mon, 03 Sep 2012 14:07:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8b1x-0007sp-Su for submit@debbugs.gnu.org; Mon, 03 Sep 2012 14:05:50 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:55083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8b1x-0007si-LW for submit@debbugs.gnu.org; Mon, 03 Sep 2012 14:05:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8b1t-0006mV-S6 for bug-guile@gnu.org; Mon, 03 Sep 2012 14:05:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8b1s-0007sR-C5 for bug-guile@gnu.org; Mon, 03 Sep 2012 14:05:45 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:58434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8b1s-0007sN-60 for bug-guile@gnu.org; Mon, 03 Sep 2012 14:05:44 -0400 Original-Received: from localhost ([127.0.0.1]:47798 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8b1r-000448-Cg for bug-guile@gnu.org; Mon, 03 Sep 2012 14:05:43 -0400 Original-Received: by lola (Postfix, from userid 1000) id 06E6120067E; Mon, 3 Sep 2012 20:05:25 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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:6508 Archived-At: Having this supported in define-public but not in define seems like an inconsistency: dak@lola:/usr/local/tmp/lilypond$ guile GNU Guile 2.0.5-deb+1-1 Copyright (C) 1995-2012 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)> (define-public ((x a) b) a) scheme@(guile-user)> (define ((x a) b) a) While compiling expression: ERROR: Syntax error: unknown file:2:0: source expression failed to match any pattern in form (define ((x a) b) a) scheme@(guile-user)> The Scheme report does not mention this explicitly, but it would appear as a recursive application of the rule (define (a b) ...) -> (define a (lambda (b) ...)) leading first to (define (x a) (lambda (b) a)) and thence to (define x (lambda (a) (lambda (b) a))) And if it is not supposed to be supported, why is it supported with define-public? -- David Kastrup