I have now installed SoyLatte Java 1.6 on one of my Macs (OS X 10.5.8),
and it enables me to run ErsatzLisp stuff. In your code below I notice
you use "nil" instead of "NIL". Why is that?
On 03-12-10 09:00 , Alexander Burger wrote:
Why does your code
(java Label 'addMouseListener
'mouseClicked '((Ev) (setq Dir (if (= 1 Dir) 12 1)))
'mouseReleased nil ) )
have all those nil cases? Is that necessary?
I would prefer if it were not necessary. But an interface like
MouseListener requires the implementation of all methods. I think I got
a runtime error if I didn't supply all methods. And I didn't investigate
how to implement MouseAdapters which are classes and cannot be handled
Do you have an idea? On the other hand I don't worry too much if I
simply supply empty methods (this could be encapsulated in a function).