28.02.2014 Views

Burke_et_al-NIL_Reference_Manual_0286-1984

Burke_et_al-NIL_Reference_Manual_0286-1984

Burke_et_al-NIL_Reference_Manual_0286-1984

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.

Cotl\'cnliot1s 2 Nil. Manu<strong>al</strong><br />

'n1e names of predicate functions in!\u, and CO:\fMON LISP are typic<strong>al</strong>ly fi)nned by suffixing<br />

the character t~p" to the end of a descriptive name. For instance.consp is a predicate which is<br />

true if its argument is a cons~ and lessp (which actuaUy is a MACUSP. not COMMON USP.<br />

function) compares numbers and (when given two arguments) r<strong>et</strong>urns t if the first is less than the<br />

second. If the name itself is hyphenated. then "-pit is suffixed: upper-case-p is a predicate<br />

which tells if a character is upper-case. If, however. the predicate name is fonncd by prefixing a<br />

speci<strong>al</strong>izing name to an existing predicate name, then the fin<strong>al</strong> t.p" would not have hyphenation<br />

added to it: string-Iessp is a predicate can be used to compare strings using a standard collating<br />

sequence. the name heing fimned by prefixing "string-" to 'tlessp". There are. of coursc. many<br />

exceptions to this. and this convention does nOl eliminate <strong>al</strong>l ambiguity. but it helps. A goud<br />

numher of ~II functions did not fi)Uow this convention in earlier versiul1sof. ~II: many of these<br />

h~l\'e heen fixed. mld the old names made synonymous with the new names for the time being.<br />

MC:NJLMAN;INTRO 18<br />

23-DFC-83

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

Saved successfully!

Ooh no, something went wrong!