If an array is allocated directly, the intention is almost certainly to be used for a longer duration than a single native call, so arrays need global support so that the corresponding unlock call can be invoked as the array falls out of scope.
For arrays of objects they will need to have tests added specifically for GlobalArray when it is constructed from a local object.
Arrays of directly spannable types should be able to allocate themselves as direct or indirect (indirect being the default).
I propose the following syntax:
For this to be meaningful, arrays likely need to have a global flavour. Arrays of objects must never be constructible in this manner.
If an array is allocated directly, the intention is almost certainly to be used for a longer duration than a single native call, so arrays need global support so that the corresponding unlock call can be invoked as the array falls out of scope.
For arrays of objects they will need to have tests added specifically for
GlobalArray
when it is constructed from a local object.