issue: class field and its usage from lambda
Fushacko Tito
imdagger@yandex.ru
Wed Aug 8 09:13:00 GMT 2012
Thanks. It works for me now (for synthetic code and for my real project).
08.08.2012, 12:59, "Per Bothner" <per@bothner.com>:
> On 08/07/2012 09:05 AM, Fushacko Tito wrote:
>
>> б (define-class FailClass ()
>> б б б б (x ::float access: 'private init: 0.0)
>>
>> б б б б ((wrap-x) (lambda () x))
>>
>> б б б б ((calculate-position)
>> б б б б б (letrec ( (wrap-func б (lambda () (wrap-x))) )
>> б б б б б б б (wrap-func))))
>>
>> б For both Kawa 1.12.1 (revision 7282) and Kawa 1.12 release i got this traceback:
>> б [imdagger@blacktears]$ java -jar /home/imdagger/kawa/kawa/kawa-1.12.1.jar -C test.scm
>> б (compiling test.scm to test)
>> б test.scm:4: internal error while compiling test.scm
>> б java.lang.NullPointerException
>> б б б б б б б б б at gnu.expr.LambdaExp.setCallersNeedStaticLink(LambdaExp.java:209)
>
> I checked in a fix for this in the Subversion repository.
>
> This is related to using define-class rather than define-simple-class;
> the manual discusses the difference:
> http://www.gnu.org/software/kawa/Defining-new-classes.html
>
> --
> --Per Bothner
> per@bothner.com б б http://per.bothner.com/
--
Alex Moiseenko
More information about the Kawa
mailing list