This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Strange error message


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]