From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: hygiene and macro-introduced toplevel bindings
Date: Mon, 28 Feb 2011 23:32:05 +0100 [thread overview]
Message-ID: <87mxlfyemy.fsf@gnu.org> (raw)
In-Reply-To: m3mxlfrgqz.fsf@unquote.localdomain
Hi,
Andy Wingo <wingo@pobox.com> writes:
> But you have to, I think. If that module that contained the above
> define-syntactic-accessor expansion exports "foo", then in another
> module you have:
>
> (define bar (lambda () (foo)))
>
> which expands to
>
> (define bar (lambda () val-234123))
>
> Val needs to be named.
FWIW I had this problem back when ‘define-wrapped-pointer-type’
generated the SRFI-9 record name (recall that SRFI-9 accessors,
constructors, and type predicates are macros, which refer to the global
variable that holds the vtable.)
The solution I chose was to let users provided the record name, like
‘define-record-type’ does (de6fb1875d1a7e8d2a39ec8eba753c07abcd4263).
Thanks,
Ludo’.
next prev parent reply other threads:[~2011-02-28 22:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-27 21:37 hygiene and macro-introduced toplevel bindings Andy Wingo
2011-02-27 22:02 ` Hans Aberg
2011-02-28 0:15 ` Andreas Rottmann
2011-02-28 21:28 ` Andy Wingo
2011-02-28 21:49 ` Noah Lavine
2011-03-08 22:33 ` Andy Wingo
2011-02-28 22:32 ` Ludovic Courtès [this message]
2011-03-08 22:37 ` Andy Wingo
2011-03-09 9:33 ` Hans Aberg
2011-03-09 20:14 ` Andy Wingo
2011-04-04 13:48 ` Hans Aberg
2011-04-01 8:52 ` Andy Wingo
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=87mxlfyemy.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guile-devel@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).