17.05.2015 Views

zl:1 - FTP

zl:1 - FTP

zl:1 - FTP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>zl</strong>:typep<br />

598<br />

I<br />

: rational arg is a ratio.<br />

: single-float arg is a single-precision floating-point number.<br />

: double-float arg is a double-precision floating-point number.<br />

: complex arg is a complex number.<br />

:list<br />

arg is a cons.<br />

: locative arg is a locative pointer.<br />

: compiled-function<br />

arg is the machine code for a compiled function.<br />

: closure arg is a closure.<br />

: select-method arg is a select-method table.<br />

: stack-group<br />

: string<br />

: array<br />

arg is a stack-group.<br />

arg is a string.<br />

arg is an array that is not a string.<br />

: random Returned for any built-in data type that does not fit into<br />

one of the above categories.<br />

{oo<br />

An object of user-defined data type {oo (any symbol).<br />

The primitive type of the object could be array, or instance.<br />

(<strong>zl</strong>:typep instance) returns the symbol that is the name of the instance's<br />

flavor.<br />

(<strong>zl</strong>:typep instance 'flavor-name returns t if the flavor of instance is named<br />

flavor-name or contains that flavor as a direct or indirect component, nil<br />

otherwise.<br />

Examples:<br />

(<strong>zl</strong>:typep 'common :SYMBOL) => T<br />

(<strong>zl</strong> :typep 4 ) => :FIXNUM<br />

(<strong>zl</strong>:typep .BBBB1) => :SINGLE-FLOAT<br />

(<strong>zl</strong> :typep BdB :DOUBLE-FLOAT) => T<br />

(<strong>zl</strong>:typep #c(1.2 3.3)) => :COMPLEX<br />

(<strong>zl</strong> :typep "good day sunshine" :STRING) => T<br />

(<strong>zl</strong> :typep #(a b c)) => :ARRAY<br />

The type argument to <strong>zl</strong>:typep of two arguments can be any of the above<br />

keyword symbols (except for :random), the name of a user-defined data<br />

type (either a named structure or a flavor), or one of the following additional<br />

symbols:<br />

:atom<br />

:ilX<br />

:float<br />

Any atom (as determined by the atom predicate).<br />

Any kind of fixed-point number (fumum or bignum).<br />

Any kind of floating-point number (single- or doubleprecision).<br />

: numb er Any kind of number.<br />

:non-complex-number<br />

Any noncomplex number.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!