Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
/* distributed_programming_client.wren */
|
||||
|
||||
import "./fmt" for Fmt
|
||||
|
||||
foreign class Client {
|
||||
construct dialHTTP(network, address) {}
|
||||
|
||||
foreign call(serviceMethod, arg)
|
||||
}
|
||||
|
||||
var client = Client.dialHTTP("tcp", "localhost:1234")
|
||||
var amounts = [3, 5.6]
|
||||
for (amount in amounts) {
|
||||
var tax = client.call("TaxComputer.Tax", amount)
|
||||
Fmt.print("Tax on $0.2f = $0.2f", amount, tax)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue