This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
语法 | |
copy-symbol symbol &optional copy-properties => new-symbol | |
参数和值 | |
symbol --- 一个 symbol | |
copy-properties --- 一个 generalized boolean | |
new-symbol --- 一个新的,没被扣押的 symbol | |
描述 | |
拷贝一个 symbol |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
语法 | |
get symbol indicator &optional default => value | |
(setf (get symbol indicator &optional default) new-value) | |
参数和值 | |
symbol --- 一个 symbol | |
indicator --- 一个 object | |
default --- 一个 object, 默认为 nil | |
value --- 如果 指定的属性存在, 则返回该属性的值. 否则返回 default 的值 | |
new-value --- 一个 object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
描述 | |
当读取一个 unbound 的变量时, 会抛出 UNBOUND-VARIABLE 异常 | |
代码 | |
* b | |
debugger invoked on a UNBOUND-VARIABLE: The variable B is unbound. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
语法 | |
symbol-name symbol => name | |
参数和值 | |
symbol --- 一个 symbol | |
name --- 一个 string | |
描述 | |
symbol-name 返回 symbol 的name, 如果 symbol 的名字改变了, 那结果会未定义 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
symbol 在 common lisp 中是一个类, | |
描述: | |
symbol 在common lisp 中用于指明各种实体的身份.包括但不仅限于变量和函数. | |
symbol 可以被包含在包 package(包)中, 如果在某个 package 中可以获取到一个 symbol, 那么称这个 package 扣押了这个 symbol. | |
一个 symbol 可以被多个 package 扣押, 如果一个 symbol 没有被任何一个 package 扣押, 则称这个包为非扣押的 | |
它具有如下属性: | |
1.名字, symbol 的名字是一个代表改符号的字符串, 每个符号都有一个名字. 符号的名字用于在外部标识和打印符号 | |
2.包, | |
3.属性列表, 属性列表提供这个符号的有名属性 | |
4.值, 如果 symbol 有值的属性, 则这个符号是被 bound 的 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
语法 | |
char-name character => name | |
参数和值 | |
character --- 一个 character | |
name --- 一个 string 或 nil | |
描述 | |
返回 character 的 name, 如果 character 没有 name, 则返回 nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
描述 | |
simple-array 是没有嵌套其他 array的, 没有 fill pointer, 并且不能显式调整的 array. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
语法 | |
fill-pointer vector => fill-pointer | |
(setf (fill-pointer vector) new-fill-pointer) | |
参数和值 | |
vector --- 一个 vector | |
fill-pointer, new-fill-pointer --- 一个有效的 fill pointer | |
描述 | |
访问 vector 的 fill pointer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
语法 | |
array-has-fill-pointer-p array => generalized-boolean | |
参数和值 | |
array --- 一个 array | |
generalized-boolean --- 一个 generalized-boolean | |
描述 | |
如果 array 有 fill pointer, 则返回真, 否则返回 false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
语法 | |
array-total-size array => size | |
参数和值 | |
array --- 一个 array | |
size --- 一个非负整数 | |
描述 | |
返回array的总大小 |