eval(readFile("Worlds_Library")) $world.call(null, (function() { var $staticScope = $scope; return function($world, $this) { var $scope = $staticScope.makeChild(); $scope.decl($world, "x", arguments[2]); alert("a x="+$scope.get($world, "x")) alert("b x="+$scope.makeChild().get($world, "x")) alert("c x="+$scope.get($world.makeChild(), "x")) alert("d x="+$scope.makeChild().get($world.makeChild(), "x")) $world.tryElse( function($world){ alert("e x="+$scope.get($world, "x")) $world.call(null, $scope.get($world, "alert"),("in try, " + $scope.get($world, "x"))); throw "abort" }, function($world) { $world.call(null, $scope.get($world, "alert"),("in else, " + $scope.get($world, "x"))) } ) } })(), 5)