local -> var; scope reformatted; singleton is killed finally

This commit is contained in:
Dmitry Boulytchev 2021-01-31 22:25:31 +03:00
parent 5ae88f820d
commit 216e716251
11067 changed files with 12168 additions and 12173 deletions

View file

@ -4,13 +4,13 @@
-- Deferred computations.
public fun makeLazy (f) {
local value, set = false;
var value, set = false;
fun () {
if set
then value
else
local c; -- need this temporary since in value := f () value would
var c; -- need this temporary since in value := f () value would
-- create an intermediate managed pointer
set := true;
c := f ();