17.05.2015 Views

zl:1 - FTP

zl:1 - FTP

zl:1 - FTP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

245<br />

funeall<br />

Examples:<br />

(ftruncate 5) => 5.0 and 0<br />

(ftruncate -5) => -5.0 and 0<br />

(ftruncate 5.2) => 5.0 and 0.19999981<br />

(ftruncate -5.2) => -5.0 and -0.19999981<br />

(ftruncate 5 3) => 1.0 and 2<br />

(ftruncate -5 3) => -1.0 and -2<br />

(ftruncate 5.2 4) => 1.0 and 1.1999998<br />

(ftruncate -5.2 4) => -1.0 and -1.1999998<br />

(ftruncate 4.2d0) => 4.0d0 and 0.2B000000000000018d0<br />

(ftruncate -4.2d0) => -4.0d0 and -B.200BBBBBBBBBBBB18dB<br />

For a table of related items: See the section "Functions That Divide and<br />

Return Quotient as Floating-point Number" in Symbolics Common Lisp:<br />

Language Concepts.<br />

funcall fn &rest args Function<br />

(funcall fn al a2 ••• an) applies the function fn to the arguments al, a2, ""<br />

an. fn cannot be a special form nor a macro; this would not be meaningful.<br />

Example:<br />

(cons 1 2) => (1 . 2)<br />

(setq cons 'plus)<br />

(funcall cons 1 2) => 3<br />

(cons 1 2) => (1 . 2)<br />

This shows that the use of the symbol cons as the name of a variable and<br />

the use of that symbol as the name of a function do not interact. The funcall<br />

form evaluates the variable and gets the symbol <strong>zl</strong>:plus, which is the<br />

name of a different function. The cons form invokes the function named<br />

cons.<br />

Note: The Maclisp functions sub realI, IsubrcalI, and <strong>zl</strong>:arraycall are not<br />

needed in Symbolics Common Lisp; funcall is just as efficient. <strong>zl</strong>:arraycall<br />

is provided for compatibility; it ignores its first subform (the Maclisp array<br />

type) and is otherwise identical to aref. subrcall and lsubrcall are not<br />

provided.<br />

See the section "Functions for Function Invocation" in Symbolics Common<br />

Lisp: Language Concepts.<br />

I

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

Saved successfully!

Ooh no, something went wrong!