This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
kawa modules new default to static
- From: Per Bothner <per at bothner dot com>
- To: "kawa at sourceware dot org" <kawa at sourceware dot org>
- Date: Sun, 01 Nov 2009 00:32:08 -0700
- Subject: kawa modules new default to static
I've changed to the default to be "static modules".
This means that a module-level (file-level) define
is now translated to a static field and/or method, rather
than an instance field and/or method. I think this
slightly improves performance, and probably slightly
improves people's expectations, since this way a
module-level class that references other module-level
variables no longer needs a static link, so the class
can be a simple Java class.
A new flag --module-nonstatic (not yet documented) can
be used to get the old behavior.
See:
http://www.gnu.org/software/kawa/Module-classes.html#id2849686
--
--Per Bothner
per@bothner.com http://per.bothner.com/