nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
5e595c8
b8f766e
)
Merge: interactive nit: main variables are preserved
author
Jean Privat
<jean@pryen.org>
Thu, 23 Nov 2017 16:12:59 +0000
(11:12 -0500)
committer
Jean Privat
<jean@pryen.org>
Thu, 23 Nov 2017 16:12:59 +0000
(11:12 -0500)
This hacks (by refinement) the scope and interpretation services to load and save the states of the local variables of the main method.
`nitin` is now usable for everyday usages:
~~~raw
-->var sum=0
-->for i in [0..5[ do
...print i
...sum += i
...end
0
1
2
3
4
-->print sum
10
~~~
Pull-Request: #2584
Trivial merge