Quote from: Crimson Wizard on Mon 09/03/2020 14:03:07No. It's the answer that's given every time, and no it can't be done in script
I think most of this may be done in script.
Again : You can't do dynamic arrays of arrays in AGS, and when you pass an int[] you have to pass its length (or save it as metadata and then you ruin your straightforward for loops like you said) and return the int[] if you changed it, it's a nightmare. I have the exact same Array module as you have, and both our modules do exactly that : pass the length and return the new int[]. If you want to implement something as simple as Pop (which must return the resized array and the value) you hit a wall and the hacky solutions start.
If you go that way, Dictionary and Set could also have been done in script.
I don't want to throw tantrum, it's just that I have to same the same things every time for 10 years. I can even continue the conversation on my own : "But of course you can do arrays of arrays, if you store a two-dimensional array into a regular array", at which point I reply that then the biggest array determines the size of all arrays (unpractical for hundreds of arrays of wildly different sizes) or you have to implement crazy-complicated memory allocation routines.