|
 |
On 23/09/2023 01:30, Bald Eagle wrote:
>
> One thing that I did notice is that I'm splicing out array entries until I have
> an empty array.
>
> That was triggering an invalid array size error, which I fixed / worked around
> by doing:
>
> #if (newSize <= 0)
> #local tmpArray = array;
> #else
> #local tmpArray = array[newSize]
> #end
>
> and
>
> #if (newSize <= 0)
> #declare thisArray = array;
> #else
> #declare thisArray = array[newSize]
> #end
>
>
> Maybe do some further testing and see what you think, then update that last
> macro.
>
AAs always, that's a very good remark on your part.
I've never thought about the cases where the arrays are empty.
I'm going to apply your suggestions, correct my macros and
run more in-depth tests.
--
Kurtz le pirate
Compagnie de la Banquise
Post a reply to this message
|
 |