Hi,
when I use |; resize arrayX 0 ( it allways has the length 1 and the first value is not deleted.
Is there a way to set the length really to 0 or do I allways need to set the first value to 0 manuelly?
Resize an array to length 0
Hi,
when I use |; resize arrayX 0 ( it allways has the length 1 and the first value is not deleted.
Is there a way to set the length really to 0 or do I allways need to set the first value to 0 manuelly?
@Abgehter Hi, I think an array with length 0 wouldn't exist, so the minimum is 1 point. You can resize it to 1 point and reset it to 0 by sending the following two messages:
;
array1 resize 1;
array1 const 0;
An array will allocate some space in memory, according to its size and data type (in Pd it's a float). An array of length 0 is a non-existent array with no space in memory, so my guess is that it's an invalid concept.
Oops! Looks like something went wrong!