This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Strange error message
- From: Per Bothner <per at bothner dot com>
- To: Yaroslav Kavenchuk <kavenchuk at gmail dot com>
- Cc: kawa at sourceware dot org
- Date: Wed, 28 Oct 2009 20:55:44 -0700
- Subject: Re: Strange error message
- References: <4AE5B9BB.80006@gmail.com> <4AE75DA4.2080507@bothner.com>
On 10/27/2009 01:52 PM, Per Bothner wrote:
On 10/26/2009 08:01 AM, Yaroslav Kavenchuk wrote:
When I add wrong `toString` method to example from
http://www.gnu.org/software/kawa/Defining-new-classes.html :
This one is tricky. The problem is that plusp is undefined,
which means the compiler creates a dynamic variable, which
means the class needs a static link.
Thanks for the bug report. I checked in a fix.
I'm also going to experiment with making --invoke-static the default.
I think that will avoid some of these problems and warnings; will better
match people's expectations (since I think people expect a top-level
class to be static, like in Java); and be slightly faster.
--
--Per Bothner
per@bothner.com http://per.bothner.com/