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.

inline<br />

272<br />

(defun sum-it (limit)<br />

(loop with sum-of-series = e<br />

initially (print "The sum of this series is :")<br />

for num from e to limit<br />

do<br />

(setq sum-of-series (+ sum-of-series num»<br />

finally (prin1 sum-of-series») => SUM-IT<br />

(sum-it 9) =><br />

"The sum of this series is :" 45<br />

NIL<br />

See the macro loop, page 309.<br />

inline<br />

Declaration<br />

(inline functionl function2 00' ) specifies that it is desirable for the compiler<br />

to open-code calls to the specified functions; that is, the code for a specified<br />

function should be integrated into the calling routine, appearing "in line"<br />

in place of a procedure call. This may achieve extra speed at the expense<br />

of debuggability (calls to functions compiled in-line cannot be traced, for<br />

example). This declaration is pervasive, that is it affects all code in the<br />

body of the form. The compiler is free to ignore this declaration.<br />

Note that rules of lexical scopingare observed; if one of the functions mentioned<br />

has a lexically apparent local definition (as made by flet or labels),<br />

then the declaration applies to that local definition and not to the global<br />

function definition.<br />

in-package package-name &rest make-package-keywords Function<br />

:insert item key of si:heap<br />

Inserts item into the heap based on key, and returns item and key.<br />

Method<br />

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

in Symbolics Common Lisp: Language Concepts.<br />

instance &optional (flavor '*) Type Specifier<br />

instance is a type specifier symbol denoting flavor instances. When a new<br />

flavor is defined with defflavor, the name of the flavor becomes a valid<br />

type symbol, and individual instances of that flavor become valid types of<br />

instance that can be tested with typep.<br />

instance is a subtype of t.<br />

Examples:

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

Saved successfully!

Ooh no, something went wrong!