This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: issue: class field and its usage from lambda
- From: Per Bothner <per at bothner dot com>
- To: Fushacko Tito <imdagger at yandex dot ru>
- Cc: kawa at sourceware dot org
- Date: Tue, 07 Aug 2012 12:48:51 -0700
- Subject: Re: issue: class field and its usage from lambda
- References: <33481344355500@web19g.yandex.ru>
On 08/07/2012 09:05 AM, Fushacko Tito wrote:
Hi. I'm tried to use Kawa 1.12.1 (revision 7282) and 1.12 stable. Could anyone help me and explain why --main flag changes Kawa compiler's behavior radically?
The reason is what symbols get exported by default, when no module-export
is specified: When you specify --main, the default is that nothing is
exported;
when you don't specify --main the default is that everything is exported.
Adding this will force FailClass to be exported, so it will fail
consistently:
(module-export FailClass)
If FailClass isn't exported, it is never used, so the compiler
doesn't generate code for its methods, and so the compiler bug
doesn't get triggered.
I'm looking into the bug now.
--
--Per Bothner
per@bothner.com http://per.bothner.com/