From: ludo@gnu.org (Ludovic Courtès)
To: guile-user@gnu.org
Subject: Re: Placement of defines
Date: Thu, 18 Dec 2008 21:57:18 +0100 [thread overview]
Message-ID: <87iqph42xd.fsf@gnu.org> (raw)
In-Reply-To: 8wqdqq1i.fsf@vps203.linuxvps.org
Sebastian Tennant <sebyte@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")
Thanks,
Ludo'.
next prev parent reply other threads:[~2008-12-18 20:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cmu-lmtpd-18264-1229620135-1@mail-imap1.uio.no>
2008-12-18 17:31 ` Placement of defines Kjetil S. Matheussen
2008-12-18 18:47 ` Sebastian Tennant
2008-12-18 20:57 ` Ludovic Courtès [this message]
2008-12-19 11:18 ` Sebastian Tennant
[not found] <cmu-lmtpd-21674-1229672512-0@mail-imap1.uio.no>
2008-12-19 17:10 ` Kjetil S. Matheussen
2008-12-27 15:19 ` Sebastian Tennant
2008-12-18 17:00 Sebastian Tennant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iqph42xd.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).