Sujet : Re: UID: Generating pointers in awk
De : mcollado2011 (at) *nospam* gmail.com (Manuel Collado)
Groupes : comp.lang.awkDate : 16. Oct 2024, 16:03:00
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <veokj4$29jvm$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
El 13/10/24 a las 20:19, Kaz Kylheku escribió:
...
You can pass associative arrays down into functions, but not
return them, or assign them from one variable to another.
Well, instead of
arr = a_func(args)
you can modify a_func to have
a_func(args, arr)
And it is customary to write a generic array copy function.
a_copy(arr1, arr2)
HTH.