>> Why does your code
>> (java Label 'addMouseListener
>> (interface "java.awt.event.MouseListener"
>> 'mouseClicked '((Ev) (setq Dir (if (= 1 Dir) 12 1)))
>> 'mouseEntered nil
>> 'mouseExited nil
>> 'mousePressed nil
>> '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.
> 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
There are two thing you could do:
Why don't you simply default to 'nil' in your proxy dispatcher if the
method is not specified? Or something like that.
Or, in the wl interpreter, I chose to have one handler and pass the
method name as the first argument.