From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tristan Colgate Newsgroups: gmane.lisp.guile.devel Subject: defmacro* and defmacro*-public in master Date: Fri, 18 Dec 2009 13:27:38 +0000 Message-ID: <2e6d10880912180527k3ae5af5aqa2eb0f9bc5719cb5@mail.gmail.com> References: <2e6d10880912150915vc853f8eme1535b8aa5504aab@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1261142878 7012 80.91.229.12 (18 Dec 2009 13:27:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Dec 2009 13:27:58 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Dec 18 14:27:51 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NLcs2-0007GM-RD for guile-devel@m.gmane.org; Fri, 18 Dec 2009 14:27:51 +0100 Original-Received: from localhost ([127.0.0.1]:56346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLcs2-0000il-M5 for guile-devel@m.gmane.org; Fri, 18 Dec 2009 08:27:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLcrz-0000iK-Cy for guile-devel@gnu.org; Fri, 18 Dec 2009 08:27:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLcru-0000h2-Tm for guile-devel@gnu.org; Fri, 18 Dec 2009 08:27:47 -0500 Original-Received: from [199.232.76.173] (port=44853 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLcru-0000gw-LZ for guile-devel@gnu.org; Fri, 18 Dec 2009 08:27:42 -0500 Original-Received: from mail-bw0-f215.google.com ([209.85.218.215]:52901) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLcru-0001mR-Ny for guile-devel@gnu.org; Fri, 18 Dec 2009 08:27:42 -0500 Original-Received: by bwz7 with SMTP id 7so2253635bwz.26 for ; Fri, 18 Dec 2009 05:27:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=xoZP5fiWs1lLcV+HL8S+JTaH5k0QBMRs/jrmuRHuCEk=; b=WUzkRFarl81kG/crff9qCXGqK0R/3ZV66CMjw4svo+lOFFI2Ynm18xnwqLmA5Pwdw0 yjvmizK10eeu1XOwFMd9hmpTpPdXr4gYJdFgW5Slakl/MLeYYmVr4LOa0885TgqX+QAq 8OCtmPn6ubWw4E8DaUcd99upUgTyC2rO6GJiE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=FRbJGLnOdU+ojebtP+OTpmCETPeMVQbTlu3QZoiuTFs1t1Yr3jH8pNU5QBYlVY+sQ3 9F8bfT7iyo7g2gAfc4JMYM0xGqgcnp0ub1WOIJWwt7URtqemnzDWkIsQ5Fkit1sGLMqv zV2XCX68SqTAks6VzPeFqHRpar9VfVlsaIE1o= Original-Received: by 10.204.2.211 with SMTP id 19mr2368380bkk.6.1261142858667; Fri, 18 Dec 2009 05:27:38 -0800 (PST) In-Reply-To: <2e6d10880912150915vc853f8eme1535b8aa5504aab@mail.gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9776 Archived-At: [I sent this before subscribing but it hasn't turned up so I'm resending now, sorry if the previous posting reappears some time later] Hi Guys, Are defmacro* and friends supposed to work in current master? I've got some code that works under 1.8 but fails on master. I checked the trivial examples in the manual, and sure enough, they fail as well... scheme@(guile-user)> (use-modules (ice-9 optargs)) scheme@(guile-user)> (defmacro* transmorgify (a #:optional b) ... (a 1)) ERROR: In procedure sc-expand: ERROR: source expression failed to match any pattern in (defmacro* transmorgify (a #:optional b) (a 1)) scheme@(guile-user)> None of the unit tests seem to directly cover these macros. Also, out of interest, is there such a thing as define*-syntax? And, whilst I'm at it, on a probably unrelated matter? Is it possible to have docstrings for macros? It doesn't seem unreasonable, but doing something like (help macroname) seems to break anyway (for relatively obvious reasons). Thanks very much for all the hard work you guys are putting in, Cheers -- Tristan Colgate-McFarlane ---- "You can get all your daily vitamins from 52 pints of guiness, and a glass of milk"