SplitScript reference / Migration / Array length

Array length

Migration from C#

Source pattern

Look for the C# concept Array length in the source. The semantic difference below is more important than a token-for-token rewrite.

Canonical SplitScript

Use the canonical language and API symbols linked below.

Semantic difference

Call values.length() for the u32 element count of dynamic and fixed arrays.

Supported hosts

This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.