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.

&body 54<br />

I<br />

is a symbol. You can use return-from for methods. The name of a<br />

method's implicit block is the name of the generic function it implements.<br />

If the name of the generic function is a list, the block name is the second<br />

symbol in that list.<br />

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

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

&body<br />

Lambda List Keyword<br />

This keyword is used with macros only. I t is identical in function to<br />

&rest, but it informs output-formatting and editing functions that the<br />

remainder of the form is treated as a body, and should be indented accordingly.<br />

Note that either &body or &rest, but not both, should be used in any<br />

definition.<br />

boole op integerl &rest more-integers Function<br />

boole is the generalization of logical functions such as logand, logior and<br />

logxor. It performs bit-wise logical operations on integer arguments<br />

returning an integer which is the result of the operation.<br />

The argument op specifies the logical operation to be performed; sixteen<br />

operations are possible. These are listed and described in the table below<br />

which also shows the truth tables· for each value of op.<br />

op can be specified by writing the name of one of the constants listed<br />

below which represents the desired operation, or by using an integer between<br />

0 and 15 inclusive which controls the function that is computed. If<br />

the binary representation of op is abcd (a is the most significant bit, d the<br />

least) then the truth table for the Boolean operation is as follows:<br />

integer2<br />

1 B 1<br />

integerl<br />

BI a c<br />

11 b d<br />

Examples:<br />

(boole 6 B B) => B<br />

(boole 11 1 B) => -2<br />

(boole 2 6 9) => 9<br />

a=B<br />

a=1 and b=B<br />

a=b=d=B c=1 therefore 1J s appear only<br />

when integer1 is Band integer2 is 1<br />

With two arguments, the result of hoole is simply its second argument. At<br />

least two arguments are required.

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

Saved successfully!

Ooh no, something went wrong!