This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Using Kawa extensions in R7RS libraries
- From: Per Bothner <per at bothner dot com>
- To: kawa at sourceware dot org
- Date: Thu, 12 Feb 2015 09:56:56 -0800
- Subject: Re: Using Kawa extensions in R7RS libraries
- Authentication-results: sourceware.org; auth=none
- References: <m28ug38opn dot fsf at gmail dot com>
On 02/12/2015 01:27 AM, Helmut Eller wrote:
I supposed it's possible to import Kawa extensions into
R7RS libraries like so:
(define-library (foo)
(import (only <some-library> invoke invoke-static field static-field))
...)
But what is the name of <some-library> that exports the various Kawa
extensions?
I think we could start with:
(kawa reflect) ; includes invoke invoke-static field static-field and more
(kawa all) ; everything defined in the default REPL
I'll get to it soon, but if you want to contribute at least (kawa reflect)
it's fairly straightforward. See kawa/lib/prim_imports.scm for how to do it.
We just need to create kawa/lib/kawa/reflect.scm based on that pattern.
--
--Per Bothner
per@bothner.com http://per.bothner.com/