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
语法 | |
fmakunbound name => name | |
参数和值 | |
name --- 一个函数名 | |
描述 | |
移除函数或宏的定义 | |
代码 |
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
语法 | |
fboundp name => generalized-boolean | |
参数和值 | |
name --- 一个函数名 | |
generalized-boolean --- 一个 generalized-boolean | |
描述 | |
如果被某个函数绑定, 返回 true, 否则返回 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
语法 | |
apply function &rest args+ => result* | |
参数和值 | |
function --- 一个函数指示符 | |
args --- 可展开的参数列表 | |
results --- function 返回的 values | |
描述 | |
对这个function 使用这些参数 |
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
语法 | |
coerce object result-type => result | |
参数和值 | |
object --- 一个 object | |
result-type --- 一个类型指示符 | |
result --- 一个 object, result-type 类型 | |
描述 | |
强制将 object 转换成 result-type 类型 |
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
描述 | |
没有任何 object 属于 nil 类型,这个类型也叫作空类型, 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
描述 | |
nil 是唯一一个 null 类型的 object, 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
描述: | |
一个函数如果没有依赖的宏需要在运行时被展开,并且在加载的时候没有任何未被解析的依赖, 则称为 COMPILED-FUNCTION |
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
描述 | |
boolean 包括符号 t 和 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
描述 | |
自求值对象是指返回他自己的值作为唯一值, 即不是 symbol 也不是 cons | |
lisp 中有三种自求值对象, 数字, pathname, array。 | |
代码 | |
* 3 | |
3 | |
* #p"S:[BILL]OTHELLO.TXT" | |
#P"S:[BILL]OTHELLO.TXT" |
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
描述: | |
binding(绑定): binding 是对名字和实体建立连接. binding 可以在词法和动态环境中用特殊操作符创建 | |
environment(环境): environment 是在求值过程中一系列的binding 的集合和其他信息. | |
环境的类型: | |
Global Environment(全局环境): global environment 包括了全局的变量操作符等,主要包括下面几个方面 | |
1.动态变量和常量的绑定 | |
2.函数,宏和特殊操作符的绑定 | |
3.编译的宏 | |
4.类型和类的名字 |