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.

337<br />

make-symbol<br />

; :element-type is ami tted, and : initial-element<br />

; is a fat character. String is fat.<br />

(string-fat-p (make-string 3 :initial-element #\hyper-super-a)) => T<br />

I<br />

; :initial-element is am it ted and<br />

; :element-type is a subtype of character. Stri ng is tn, n.<br />

(string-fat-p (make-string 4 :element-type 'string-char)) => NIL<br />

; :initial-element is am it ted and<br />

; :element-type is of type character. Stri ng is fat.<br />

(string-fat-p (make-string 4 :element-type 'character)) => T<br />

(make-array 5 :element-type 'string-char) =><br />

;returns a simple, thin string<br />

(make-array 3 :element-type 'character :initial-element #\hyper-super-q)<br />

=> "" ;returns a fat, simple string<br />

(make-string 4 :area working-storage-area) => " .... "<br />

For a table of related items: See the section "String Construction" in Symbolics<br />

Common Lisp: Language Concepts.<br />

make-symbol pname &optional permanent-p Function<br />

Creates a new uninterned symbol whose print-name is the string pname.<br />

The value and function bindings are unbound and the property list is<br />

empty. If permanent-p is specified, it is assumed that the symbol is going<br />

to be interned and probably kept around forever; in this case it and its<br />

pname are put in the proper areas. If permanent-p is nil (the default), the<br />

symbol goes in the default area and pname is not copied. permanent-p is<br />

mostly for the use of intern itself.<br />

Examples:<br />

(make-symbol "FDD") => FDD<br />

(make-symbol "Faa") => IFool<br />

Note that the symbol is not interned; it is simply created and returned.<br />

If a symbol has lowercase characters in its print-name, the printer quotes<br />

the name using slashes or vertical bars. The vertical bars inhibit the Lisp<br />

reader's normal action, which is to convert a symbol to uppercase upon<br />

reading it. See the section "What the Printer Produces" in Reference<br />

Guide to Streams, Files, and I/O.

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

Saved successfully!

Ooh no, something went wrong!