This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using Kawa extensions in R7RS libraries




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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]