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: issue: class field and its usage from lambda


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/


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