argument scheme 论证型式
Listing 4 presents the Scheme functions, which implement the same behavior, but the first with an argument and the second with a static variable.
清单4展示了Scheme函数,这些函数实现相同的行为,但是第一个函数有一个参数,第二个函数有一个静态值。
Now that the Scheme variable has been created, you can simply call the Scheme function square2 (this time without an argument) and follow the same process to grab and dereference the return value.
现在已经创建了Scheme变量,接下来就可以调用scheme函数square2(这一次没有参数),并用相同的方式捕捉和取消引用返回值。
In the first example in Listing 3, I simply use the scm_call_1 function to call the Scheme function with one argument.
在清单3中的第一个例子中,我使用scm_call_1函数调用scheme函数,调用时带有一个参数。
应用推荐