# Copyright 2005-2007 Kevin Reid, under the terms of the MIT X license # found at http://www.opensource.org/licenses/mit-license.html ................ ? def makeVat := # value: ? def vat := makeVat(null, "testvat") # value: ? def remote := vat <- seedEval(e`def remote(o) :void { o <- run("ping") }`) # value: ? interp.waitAtTop(remote) ? remote # value: ? interp.waitAtTop(def res := remote <- run(println)); res # value: # stdout: ping # x ? vat <- shutdown("bye") x x ? interp.waitAtTop(def res := remote <- run(println)); res x # value: x x ? res x # value: x x ? null x # value: null