mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-26 00:28:47 +00:00
unboxed -> val, boxed -> box
This commit is contained in:
parent
919cda5556
commit
5ae88f820d
8 changed files with 16 additions and 16 deletions
|
|
@ -2,8 +2,8 @@ fun collect_ints_acc (v, tail) {
|
|||
local i;
|
||||
|
||||
case v of
|
||||
a@#unboxed -> Cons (a, tail)
|
||||
| #string -> tail
|
||||
a@#val -> Cons (a, tail)
|
||||
| #string -> tail
|
||||
| _ ->
|
||||
for i := 0, i < v.length, i := i + 1 do
|
||||
tail := collect_ints_acc (v[i], tail)
|
||||
|
|
|
|||
|
|
@ -62,8 +62,8 @@ fun genCyclicArrays (n, eq, cross) {
|
|||
|
||||
if 1 - eq && deref (f) then
|
||||
case b[i] of
|
||||
#unboxed -> b[i] := b[i] + 1
|
||||
| _ -> b[i] := 0
|
||||
#val -> b[i] := b[i] + 1
|
||||
| _ -> b[i] := 0
|
||||
esac;
|
||||
f ::= true
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue