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
Thanks, it works for this case and for old case properly now.
18.09.2012, 10:57, "Per Bothner" <per@bothner.com>:
> On 09/15/2012 05:48 PM, Fushacko Tito wrote:
>
>> Hi, I have little bit different trouble, but it's related to this topic:
>>
>> $ kawa --version
>> Kawa 1.12.1 (revision 7291)
>> Copyright (C) 2011 Per Bothner
>>
>> I'm trying to use kawa class and function that returns multiple values, there is
>> example of code which causes issue for me now:
>>
>> (module-export Bug)
>>
>> (define-class Bug ()
>> (x ::int)
>> ((f)
>> (receive ((a ::int) (b ::int)) (values 1 2)
>> (set! x b))))
>>
>> ((Bug):f)
>
> This is a bug in compiling setting of a field in the non-simple class case
> when there variable capture (closures) (In this case the receive expands
> to a non-inlined lambda expression.)
>
> I checked in a fix.
> --
> --Per Bothner
> per@bothner.com http://per.bothner.com/
--
Alex Moiseenko