AGS 4 / New compiler: regular arrays of dynamic arrays #2080
Labels
ags 4
related to the ags4 development
context: script compiler
type: enhancement
a suggestion or necessity to have something improved
Milestone
I might have missed something, but it seems there's no way to have a regular array storing pointers to dynamic array inside.
I cannot think of reasons why this would not be possible (because regular arrays of pointers are supported), so likely it's a lack of script syntax.
Things I tried:
none of the above worked.
Hence my proposal is to support regular arrays of dynamic arrays. Honestly, I am unsure of what the correct syntax should be.
See Also: #1258
Existing workaround
The workaround is to make a struct (or managed struct) with dynamic array inside, although that creates an extra type and extra level of indirection:
Unfortunately, dynamic arrays of dynamic arrays are also impossible at the moment, see #1258.
The text was updated successfully, but these errors were encountered: