This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Exception when calling fn. using for-each in Java
- To: kawa at sourceware dot cygnus dot com
- Subject: Re: Exception when calling fn. using for-each in Java
- From: Jocelyn Paine <popx at pop3 dot ifs dot org dot uk>
- Date: Wed, 20 Dec 2000 10:15:15 +0000 (GMT)
Thanks for the comments about this. As a matter of interest, why
is it that for-each requires the global environment, but the
simpiler functions I tested that don't call for-each work without
registering the environment?
Jocelyn Paine
http://www.ifs.org.uk/~popx/
+44 (0)7768 534 091
On 19 Dec 2000, Per Bothner wrote:
> Emmanuel Castro <castro@lirmm.fr> writes:
>
> > I think you're right when you say that there is an automatic initialisation
> > when called from Kawa. When you load or require the class test, Kawa
> > execute the method test.run.
>
> Not if the test module is a "static" module, as in this case.
> In that cae, there is no "run" method. Instead, all the class
> initialization happens automatically in the class initializer.
> Unfortunately, this does not cause the global Scheme environment to get
> initialized. This should probably be fixed, but doing so might need
> careful thought. Until then, call Scheme.registerEnvironment().
> --
> --Per Bothner
> per@bothner.com http://www.bothner.com/~per/
>