As the above example also shows, passing use variables by reference is one way you can allow the closure to modify values.
上面的例子还显示出,通过引用传递使用变量是允许closure修改变量的方法之一。
This example shows how fault tolerance is possible using two OpenPower 710 models: one acting as a primary server and the other acting as a backup server.
本例展示了如何使用两台OpenPower 710型机器使容错成为可能:一台作为主服务器,另一台作为备份服务器。
Listing 10 shows some example output from a test source SRGS file that contains three master rules, one of which should be ignored as test data only.
清单10展示了来自测试源srgs文件的一些示例输出,该文件包含三个主规则,其中一个规则应该被作为测试数据忽略掉。
应用推荐