Functions as values (no closures yet, and no tests)

This commit is contained in:
Dmitry Boulytchev 2019-09-22 20:15:15 +03:00
parent f5b802ebed
commit d69cb3d49d
12 changed files with 194 additions and 160 deletions

View file

@ -1,10 +1,12 @@
global i, s, j;
global i, s;
i := 0;
s := 0;
for i := 0, i < 100, i := i+1
do
local j;
for j := 0, j < 100, j := j+1
do
s := s + j