Hi,
I found out that I can do:
array a = ({ 1, 2, 3 }); array b = ({ 4, 5, 6 }); a[*] | b[*];
(1) Result: ({ /* 3 elements */ 5, 7, 7 })
But not:
array c = ({ 3, 0, 2 }); c[*] || a[*];
Compiler Error: 1:[*] not supported here. Compiler Error: 1:[*] not supported here.
Any hints on where to go patch to make the above work? (expected result: ({ 3, 2, 2 }) )
When is this usefull? For example when I have an array containing the arguments for some function call (or object creation) and get another array with some values to override.
//K