This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]