[EMAIL PROTECTED] (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


Reply via email to