Converts a Lisp object to an appropriate jobject.
The function lisp-to-jobject
tries to convert the argument lisp-object to a jobject. It succeeds if lisp-object is of a type that matches any Java primitive type or is a string. In general that means integers up to 64 bits, floats, t
, nil
and strings.
See Types and conversion between Lisp and Java for a full description.
If it fails, lisp-to-jobject
calls cl:error
, unless the argument errorp is nil
, in which case it returns nil
.
LispWorks User Guide and Reference Manual - 13 Feb 2015