Quoth l...@gnu.org (Ludovic Courtès):
> Sebastian Tennant <seb...@smolny.plus.com> 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")

Yes it works.

Damn.

After much experimenting and head scratching...

Question: When is a variable not a variable?

  Answer: When it's about to become the name of a variable.

:)

Seb



Reply via email to