[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch] variable datums with syncase transformer
From: |
Stephen Compall |
Subject: |
Re: [patch] variable datums with syncase transformer |
Date: |
Wed, 05 Mar 2008 09:36:12 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
> OTOH, you can (should?) use `use-modules':
> <snip>
>
> 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
#<macro! sc-macro>
;;restart
guile> ;;same as above, using use-syntax instead
guile> x-of-y
Backtrace:
In unknown file:
?: 0* [hashq-ref ...
<unnamed port>: While evaluating arguments to hashq-ref in expression
(hashq-ref y (quote x)):
<unnamed port>: Unbound variable: y
--
But you know how reluctant paranormal phenomena are to reveal
themselves when skeptics are present. --Robert Sheaffer, SkI 9/2003