This is the mail archive of the kawa@sources.redhat.com 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]

define-simple-class first use comments


Just implemented some classes with the define-simple-class syntax and ran
into the following problems/workarounds:

1. Field names can not have hyphens. Field names have to be java compatible.

2. If for-each is used inside a method class fields are not accessible. I
haven't tried it but I would guess that no lambda form enclosed inside a
method would have access to the outer class closure. I solved my immediate
problem by converting the for-each form to a do form.

Cheers

Willy Heineman





LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.


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