This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: r7rs library exporting syntax?
- From: Per Bothner <per at bothner dot com>
- To: kawa at sourceware dot org
- Date: Sun, 23 Nov 2014 20:30:13 -0800
- Subject: Re: r7rs library exporting syntax?
- Authentication-results: sourceware.org; auth=none
- References: <54728B1B dot 7090708 at hungry dot com>
On 11/23/2014 05:34 PM, Seth Alves wrote:
Other r7rs schemes are able to export the result of define-syntax from an r7rs library. Should I expect this to work?
I checked in a fix for your testcase.
The problem was that define-syntax uses a helper macro %define-syntax,
which is defined by Java code. But %define-syntax was bound in a dynamic environment
- which is disabled inside a define-library. The fix was to explicitly import
%define-syntax in the file that defines define-syntax.
(I earlier did the same for define and %define.)
--
--Per Bothner
per@bothner.com http://per.bothner.com/