This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
applicability of instance? on Java array types?
- From: "Hoehle, Joerg-Cyril" <Joerg-Cyril dot Hoehle at t-systems dot com>
- To: kawa at sources dot redhat dot com
- Date: Thu, 4 Dec 2003 16:13:22 +0100
- Subject: applicability of instance? on Java array types?
Hi Kawa users,
o how to check for (typep my-obj <byte[]>)?
There is this function in Kawa:
:instance? value type Function
: Returns #t iff value is an instance of type type. (Undefined if type is a
: primitive type, such as <int>.)
Isn't <byte[]> also a primitive type?
#|kawa:6|# (instance? (Base64:decode "ABCD") <byte[]>)
#t
by chance or necessity? Maybe the doc needs clarification.
;(define-namespace Base64 "class:org.apache.xerces.impl.dv.util.Base64")
o Thanks for the explanation on (integer? 1.0) -> #t
I have little experience with Scheme outside of Kawa, Oaklisp or Scheme within
Common Lisp (as in Peter Norvig's or Paul Graham's books), whose numeric tower
obviously follows Common Lisp numbers.
Regards,
Jorg Hohle