mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
local -> var; scope reformatted; singleton is killed finally
This commit is contained in:
parent
5ae88f820d
commit
216e716251
11067 changed files with 12168 additions and 12173 deletions
|
|
@ -1,7 +1,7 @@
|
|||
fun a (x, y) {
|
||||
local a = x + y, b = x - y;
|
||||
{
|
||||
local f = fun () {
|
||||
var a = x + y, b = x - y;
|
||||
(
|
||||
var f = fun () {
|
||||
write (x);
|
||||
write (y);
|
||||
write (a);
|
||||
|
|
@ -14,9 +14,9 @@ fun a (x, y) {
|
|||
y := 1000;
|
||||
|
||||
f
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
local x = read ();
|
||||
var x = read ();
|
||||
|
||||
a (5, 7) ()
|
||||
Loading…
Add table
Add a link
Reference in a new issue