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函数,调用时带有一个参数。
The first procedure, square, is a traditional Scheme function that accepts a single argument and returns a result.
第一个过程square是一个传统的Scheme函数,它接受一个参数,然后返回一个结果。
The first example illustrates calling a Scheme function from C, passing in an argument, and capturing the return value.
第一个例子演示如何从C调用一个Scheme函数,传入一个参数,并捕获返回值。
The second example creates a Scheme variable to pass in the argument.
第二个例子创建一个Scheme变量,以便传入参数。
This paper puts forward the design argument of the scheme of fast construction applying hydraulic shrinkage-compensating concrete for the upper coffer-wall of a station.
本文结合某电站上游围堰,对水工补偿收缩砼快速施工进行设计论证。
This paper puts forward the design argument of the scheme of fast construction applying hydraulic shrinkage-compensating concrete for the upper coffer-wall of a station.
本文结合某电站上游围堰,对水工补偿收缩砼快速施工进行设计论证。
应用推荐