Platform Specific

Symbol Usage Notes
Array<T> Array type definition  

NOTE Currently arrays cannot be used interchangeably with ptr<T> in TypeScript, as one might expect for targets like C++. This is intended as a future enhancement.

Instantiation

Arrays can be instantiated using the literal syntax that exists in most popular programming languages:

Or using designated constructors if applicable to your chosen source/target language pairing:

Dimensions

You can either specify array dimensions by using a target platform array constructor that allows this, or by writing the required dimension as a comment inside the array literal type annotation:

This has the following drawbacks:

NOTE This feature may be redesigned in future if demand warrants it, based on the evolving needs of the project.