From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: [Guile-commits] GNU Guile branch, syncase-in-boot-9, updated. 3d5f3091e100550052abc698e980b3e86cc01b65 Date: Thu, 30 Apr 2009 12:57:10 +0200 Message-ID: References: <87y6ti1ljk.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1241089481 18869 80.91.229.12 (30 Apr 2009 11:04:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Apr 2009 11:04:41 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Apr 30 13:04:31 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 1LzU43-0008Um-2K for guile-devel@m.gmane.org; Thu, 30 Apr 2009 13:04:27 +0200 Original-Received: from localhost ([127.0.0.1]:40043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzU42-000844-Hm for guile-devel@m.gmane.org; Thu, 30 Apr 2009 07:04:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LzU31-0007eC-Tk for guile-devel@gnu.org; Thu, 30 Apr 2009 07:03:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LzU2x-0007ar-Al for guile-devel@gnu.org; Thu, 30 Apr 2009 07:03:23 -0400 Original-Received: from [199.232.76.173] (port=46338 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzU2x-0007ak-2H for guile-devel@gnu.org; Thu, 30 Apr 2009 07:03:19 -0400 Original-Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:40728 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LzU2u-0000Rc-LK; Thu, 30 Apr 2009 07:03:16 -0400 Original-Received: from localhost.localdomain (unknown [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 32CE4AEB29; Thu, 30 Apr 2009 07:03:16 -0400 (EDT) Original-Received: from unquote (unknown [83.32.64.93]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id 22E0AAEB28; Thu, 30 Apr 2009 07:03:12 -0400 (EDT) In-Reply-To: <87y6ti1ljk.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Thu, 30 Apr 2009 12:30:07 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Pobox-Relay-ID: 816E5E58-3576-11DE-8685-CABC03BA4B0C-02397024!a-sasl-fastnet.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:8477 Archived-At: Hi, On Thu 30 Apr 2009 12:30, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > "Andy Wingo" writes: > >> * libguile/macros.h: Add API for syncase macros. > > Perhaps these should be made `SCM_INTERNAL'? The functions should probably be public, as they are public to Scheme. The bit-twiddlings should either be left as-is, or pulled into macros.c -- but there is already some bit-twiddling that's public. >> +SCM_DEFINE (scm_make_syncase_macro, "make-syncase-macro", 2, 0, 0, >> + (SCM type, SCM binding), >> + "Return a @dfn{macro} that requires expansion by syntax-case.\n" > > [...] > >> +SCM_DEFINE (scm_make_extended_syncase_macro, "make-extended-syncase-mac= ro", 3, 0, 0, >> + (SCM m, SCM type, SCM binding), >> + "Extend a core macro @var{m} with a syntax-case binding.") > > Can you explain how it works? Having a SMOB type for `syntax-case' > macros seems counter-intuitive to me. :-) It's the same smob type as normal macros, but a different macro type. Have another look :) Andy --=20 http://wingolog.org/