摘要: 宏的编写格式为 -define(Constant,Replacement). 当一个模块中碰到一个形式为?Constant时,就会展开这个宏,例如 -define(macrol(X,Y),{a,X,Y}). foo(A) -> ?macrol(A+10,b). 等价于 foo(A) -》 {a,A+ 阅读全文
posted @ 2020-03-26 15:12 ye_jing 阅读(726) 评论(0) 推荐(1)