This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: swing.scm
On Feb 19, 2011, at 6:46 PM, Per Bothner wrote:
If #!void is the same as (values), then #!void can't be a single
value.
Except that it is, in Kawa, in a context expecting a single value.
Racket throws an error:
> (length (list (values)))
context expected 1 value, received 0 values
but Kawa accepts #!void or (values) as a single value:
#|kawa:1|# (length (list #!void))
1
#|kawa:2|# (length (list (values)))
1
...
I really don't like the idea of silently ignoring values
that don't have the correct type.
I suppose it's a matter of opinion to say that only JMenuItem is the
"correct type". ;-) Anyway, right now it silently fails with a class
cast exception on the EDT, which hardly seems better.
--
Jamison Hope
The PTR Group
www.theptrgroup.com