use macros to generate java calls
Răzvan Rotaru
razvan.rotaru@gmail.com
Sat Dec 10 19:03:00 GMT 2011
On 5 December 2011 17:09, Jamison Hope <jrh@theptrgroup.com> wrote:
>
> Răzvan, out of curiosity, what problems were you facing? Using the built-in
> syntax is better in this case, but it might still be a good learning
> experience
> for writing macros. As for the symbol transformations, instead of trying to
> turn 'id-foo into "setIdFoo", I'd probably turn it into "*:set-id-foo" and
> rely on Kawa's magic to convert that to CamelCase. (Note that the built-in
> object creation syntax is more robust, since it'll turn "id1:" into either
> setId1() or addId1() depending upon which method actually exists.)
>
My problem is insufficient knowlegde of scheme macros. :) The built in
object allocation in kawa should do the trick for me, so for the
moment I can avoid macros.
Thanks,
Răzvan
More information about the Kawa
mailing list