guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Placement of defines


From: Ludovic Courtès
Subject: Re: Placement of defines
Date: Thu, 18 Dec 2008 21:57:18 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Sebastian Tennant <address@hidden> writes:

> Incidentally, perhaps you can tell me why the first argument to this
> compile-friendly macro has to be a string for it to work.
>
>  guile> (define-macro (definer var val)
>           `(define ,var ,val))
>  guile> (definer 'foo "bar")
>
> appears to have worked, but...
>
>  guile> foo
>  ERROR: Unbound variable: foo
>  ABORT: (unbound-variable)

Try this:

  (definer foo "bar")

Thanks,
Ludo'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]