Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Last active December 20, 2016 06:54
Show Gist options
  • Save zhouqiang-cl/3a19ce85c6829e8c04e4d4b7b6175c4a to your computer and use it in GitHub Desktop.
Save zhouqiang-cl/3a19ce85c6829e8c04e4d4b7b6175c4a to your computer and use it in GitHub Desktop.
common lisp 的函数 MAKE-SYMBOL
语法
make-symbol name => new-symbol
参数和值
name --- 一个 string
new-symbol --- 一个新的 uninterned symbol
描述
make-symbol 返回一个新的 uninterned 的名字为 name 的symbol。这个新的symbol有一个空的属性列表, 这个 symbol 没有 bound和 fbound
代码
* (setf temp (make-symbol "x"))
#:|x|
* (symbol-name temp)
"x"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment