From: spacecadet <spacecadet@purge.sh>
To: guile-devel@gnu.org
Subject: Lexically bound macro, with lexically bound transformer
Date: Wed, 24 Jul 2024 01:06:25 +0000 [thread overview]
Message-ID: <f5d779ff-31da-2572-51f6-35dcbe36c316@purge.sh> (raw)
Hi, I didn't see a help-guile list, I hope this isn't out of place
I'm trying to lexically bind a macro to a lexically bound transformer procedure
(let ((outer (lambda (x) #''())))
(let-syntax ((inner outer))
inner))
This is producing an error
"reference to identifier outside its scope in form outer"
My goal is to load external macros without any top-level definitions
I don't know if the way the macro expander works will allow this
Any help appreciated, thanks!
next reply other threads:[~2024-07-24 1:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-24 1:06 spacecadet [this message]
2024-07-24 11:15 ` Lexically bound macro, with lexically bound transformer Taylan Kammer
2024-07-24 17:10 ` spacecadet
2024-07-24 19:54 ` Attila Lendvai
2024-07-25 9:50 ` Taylan Kammer
2024-07-26 7:56 ` Maxime Devos
2024-07-27 0:30 ` spacecadet
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=f5d779ff-31da-2572-51f6-35dcbe36c316@purge.sh \
--to=spacecadet@purge.sh \
--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).