User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cl:functions:symbol-name [2019/11/11 05:00]
cl:functions:symbol-name [2019/11/22 14:00] (current)
Line 1: Line 1:
 +====== Function SYMBOL-NAME ======
 +
 +====Syntax====
 +  * **symbol-name** //symbol// → //name//
 +
 +====Arguments and Values====
 +  * //symbol// - a //​[[CL:​Glossary:​symbol]]//​.
 +  * //name// - a //​[[CL:​Glossary:​string]]//​.
 +
 +====Description====
 +**symbol-name** returns the //​[[CL:​Glossary:​name]]//​ of //symbol//.
 +
 +The consequences are undefined if //name// is ever modified.
 +
 +====Examples====
 +<​blockquote> ​
 +(symbol-name 'temp) <​r>"​TEMP"​ </r>
 +(symbol-name :start) <​r>"​START"​ </r>
 +(symbol-name '​|lowercase|) <​r>"​lowercase"</​r>​
 +(symbol-name (gensym)) <​r>"​G1234"​ ; for example </r>
 +</​blockquote>​
 +
 +====Side Effects====
 +None.
 +
 +====Affected By====
 +None.
 +
 +====Exceptional Situations====
 +Should signal an error of type type-error if //symbol// is not a //​[[CL:​Glossary:​symbol]]//​.
 +
 +====See Also====
 +None.
 +
 +====Notes====
 +None.
 +
 +\issue{LISP-SYMBOL-REDEFINITION:​MAR89-X3J13}