GSOC | Extending Common Lisp support

Helmut Eller eller.helmut@gmail.com
Fri Jun 8 12:30:00 GMT 2012


* Charles Turner [2012-06-08 11:34] writes:

> Allocating Java objects from CL doesn't work:
>
> $ java -cp kawa-1.12.jar kawa.repl --clisp
> #|kawa:1|# (java.util.Date)
> /dev/stdin:1:1: warning - no declaration seen for java.util.Date
> /dev/stdin:1:1: unbound location java.util.Date (property (function))

I think this SHOULD NOT work.  java.util.Date is clearly not a CL
function and isn't this supposed to be a CL implementation?

Despite that, the standard CL reader upcases all symbols.  If this gets
fixed the compiler would see |JAVA.UTIL.DATE|.  So using symbols to
denote Java classes will cause problems later when we get a real reader.

I'd use (make "java.util.Date" ...).

Helmut



More information about the Kawa mailing list