Hi Alex,
BTW, how can I access existing objects (like java.lang.System.err)
in wl? I can only find 'jnew', which creates new objects.
Like this:
(jfield `(jclass java.lang.System) 'err)
There are some useful functions defined in java.wl file, implemented in
picolisp instead of in native
Hi Alex,
However, I see that in the function 'jarg' you are doing the same (check
for all kinds of types).
yes, it happens in Java methods: 'jarg' and 'isInstance'. These are
necessary to automatically handle primitive types and I think it is
impossible to reduce it further while preserving
Hi Alex,
I solved another RosettaCode task with ErsatzLisp, which doesn't need
any call to 'javac':
http://rosettacode.org/wiki/Animation#Java.2FSwing
Why does your code
(java Label 'addMouseListener
(interface java.awt.event.MouseListener
'mouseClicked '((Ev) (setq Dir
Hi Tomas,
I cannot see, though, whether you also handle a mapping of Lisp lists
from/to Java arrays, which doubles the code in the case of ErsatzLisp.
I think there are two functions: 'jv2l' and 'jvector'.
I see. I cannot find out how it works, however. I tried:
: (setq S (jnew