hello,
I have an array in a patch that I need to use multiple times,
[table $0-array]
... I want to resize that array
[56] | [;$0-array resize $1]
doesn't work because the $0-array is not interpreted as an array name.... is there a workable way to resize an array named with $0 ?
Etienne
et wrote:
hello,
[56] | [;$0-array resize $1]
i always thought you need [messages( instead of [objects] to resize an array...
doesn't work because the $0-array is not interpreted as an array name.... is there a workable way to resize an array named with $0 ?
well, messages handle $n different than objects + there is no $0 in messages (if there was one, it should clearly be the identifier of the message instead of the "unique value")
to be short, you have to generate the $0 value with some [object] and expand it with $-args in the [message(
like:
[56
|
[pack 0 $0]
|
[;$2-array resize $1(
mfg.ad.sr IOhanens
----- Original Message ----- From: "IOhannes m zmoelnig" zmoelnig@iem.at
et wrote:
hello,
[56] | [;$0-array resize $1] doesn't work because the $0-array is not interpreted as an array
name.... is
there a workable way to resize an array named with $0 ?
to be short, you have to generate the $0 value with some [object] and expand it with $-args in the [message(
like:
[56
| [pack 0 $0] | [;$2-array resize $1(
or use:
[resize 56( | [s $0-array]
roman
Maybe the attatched patch will help?
derek
et wrote:
hello,
I have an array in a patch that I need to use multiple times,
[table $0-array]
... I want to resize that array
[56] | [;$0-array resize $1]
doesn't work because the $0-array is not interpreted as an array name.... is there a workable way to resize an array named with $0 ?
Etienne