]> ocean-lang.org Git - ocean/commit
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)
commitde86cdada39f42953e35c1a9ff6e5b0fb5bff553
tree2a409512a38f238d12f8274c95785ddf20656099
parent809b04eb484b75d8c0e26ba12642ed34bc6b1fd7
oceani: differentiate static-sized arrays from others.

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>
csrc/oceani.mdc