From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Compall Newsgroups: gmane.lisp.guile.devel Subject: Re: [patch] variable datums with syncase transformer Date: Wed, 05 Mar 2008 09:36:12 -0600 Message-ID: References: <1197619616.5218.34.camel@nocandy.dyndns.org> <878x0x5i92.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 1204732142 25044 80.91.229.12 (5 Mar 2008 15:49:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2008 15:49:02 +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 Wed Mar 05 16:49:28 2008 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 1JWvpX-0003cd-0p for guile-devel@m.gmane.org; Wed, 05 Mar 2008 16:46:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWvoz-0003pQ-MC for guile-devel@m.gmane.org; Wed, 05 Mar 2008 10:46:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JWvoK-00030f-2B for guile-devel@gnu.org; Wed, 05 Mar 2008 10:45:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWvoI-0002y6-9l for guile-devel@gnu.org; Wed, 05 Mar 2008 10:45:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWvoI-0002xn-1L for guile-devel@gnu.org; Wed, 05 Mar 2008 10:45:38 -0500 Original-Received: from mxsf05.insightbb.com ([74.128.0.75]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JWvoE-0005rH-4v; Wed, 05 Mar 2008 10:45:34 -0500 X-IronPort-AV: E=Sophos;i="4.25,451,1199682000"; d="scan'208";a="264955962" Original-Received: from unknown (HELO asav01.insightbb.com) ([172.31.249.124]) by mxsf05.insightbb.com with ESMTP; 05 Mar 2008 10:45:33 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAFFPzkdKiZK7/2dsb2JhbACBVqoX X-IronPort-AV: E=Sophos;i="4.25,451,1199682000"; d="scan'208";a="121012142" Original-Received: from 74-137-146-187.dhcp.insightbb.com (HELO nocandy.dyndns.org) ([74.137.146.187]) by asav01.insightbb.com with ESMTP; 05 Mar 2008 10:44:36 -0500 In-Reply-To: <878x0x5i92.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 05 Mar 2008 15:59:37 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:7059 Archived-At: ludo@gnu.org (Ludovic Court=C3=A8s) writes: > OTOH, you can (should?) use `use-modules': > >=20 > I don't even understand what the difference is between using > `use-modules' and `use-syntax' for `(ice-9 syncase)'. guile> (use-modules (ice-9 syncase)) guile> (define-syntax x-of-y (lambda (stx) (syntax-case stx () (_ (syntax (hashq-ref y 'x)))))) guile> x-of-y # ;;restart guile> ;;same as above, using use-syntax instead guile> x-of-y Backtrace: In unknown file: ?: 0* [hashq-ref ... : While evaluating arguments to hashq-ref in expression (hash= q-ref y (quote x)): : Unbound variable: y --=20 But you know how reluctant paranormal phenomena are to reveal themselves when skeptics are present. --Robert Sheaffer, SkI 9/2003