use macros to generate java calls

Răzvan Rotaru razvan.rotaru@gmail.com
Mon Dec 5 08:44:00 GMT 2011


Hi,

I'm trying to use macros to generate java calls, and have been
strugling with this all weekend, but with no success. So, I'd like to
ask for some help from more experienced schemers:

The macro should work like this:

(create-object obj-type 'id1 arg1 'id2 arg2 ...)

=>

(obj-type) ;instantiation
(*:setId1 arg1)
(*:setId2 arg2)
...


Is this possible with kawa? Any hints how to achieve this? The biggest
challenge will probably be to transform 'id-foo in setIdFoo.


Thanks,
Razvan



More information about the Kawa mailing list