This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Displaying contents of Environments; how are exported names bound?
- To: Jocelyn Paine <popx at pop3 dot ifs dot org dot uk>
- Subject: Re: Displaying contents of Environments; how are exported names bound?
- From: Per Bothner <per at bothner dot com>
- Date: Sat, 06 Oct 2001 12:28:21 -0700
- CC: kawa at sourceware dot cygnus dot com
- References: <Pine.LNX.4.10.10110061912010.31297-100000@pop3.ifs.org.uk>
Jocelyn Paine wrote:
>What's the best way, from inside a Kawa function, to display all the
>bindings in the current environment and its predecessors, right back to
>the global ones?
>
I don't think there is any easy way to do that in Kawa. We need some way to
iterate over all the bindings of an Environment. Should be easy enough,
once
we decide on a good API. Should check what other Scheme's provide.
>Given an environment E that I have just created, and a compiled module M,
>how can I add M's exported names to E?
>
You could try:
(invoke-static <gnu.kawa.reflect.ClassMemberConstraint> 'defineAll
(make <M>)
E)