]> ocean-lang.org Git - ocean/commitdiff
oceani: differentiate static-sized arrays from others.
authorNeilBrown <neil@brown.name>
Sat, 16 Oct 2021 05:58:42 +0000 (16:58 +1100)
committerNeilBrown <neil@brown.name>
Sat, 30 Oct 2021 22:19:42 +0000 (09:19 +1100)
Some arrays will always have the same size - a static size.
Others might have a different size each time their scope is entered, if
the size is calculates from a variable.

The latter need to be reallocated whenever scope is entered, the former
do not.

This will matter when we create call frames to be able to handle
recursion.

So detect and handle the difference now.

Signed-off-by: NeilBrown <neil@brown.name>

No differences found