包宏,1956年9月出生,1984年毕业于中国科学院研究生院,获硕士学位。1984-1996年就职于中国科学院化工冶金研究所(现过程工程研究所),任助理研究员和副研究员。1996年6月至今,就职于北京科技大学。现为北京科技大学信息工程学院计算机系教授,硕士生导师。
清单3包括了必须的模块头(它定义了模块的API、类型和宏)。
Listing 3 includes the necessary module header (which defines the module APIs, types, and macros).
它在此上下文中用作宏,通过闭包调用函数方法将在定义它的上下文中执行函数调用。
It ACTS like a macro in this context, where calling the method of function via the closure makes the function call in the context of where it's defined.
实践中,宏的作用通常由其它一些Lisp特性比如词法闭包以及rest参数大大加强。
In practice their usefulness is greatly enhanced by other Lisp features like lexical closures and rest parameters.
应用推荐