Deutsch   English   Français   Italiano  
<veokj4$29jvm$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Manuel Collado <mcollado2011@gmail.com>
Newsgroups: comp.lang.awk
Subject: Re: UID: Generating pointers in awk
Date: Wed, 16 Oct 2024 17:03:00 +0200
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <veokj4$29jvm$1@dont-email.me>
References: <67098add$0$711$14726298@news.sunsite.dk>
 <vegube$oouk$1@dont-email.me> <20241013110940.843@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 16 Oct 2024 17:03:01 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2473bcf191b4d9094a6efa9fecb6c174";
	logging-data="2412534"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+7TOYZ0YS0SZmn8eeFtPDfqqJyRPdf0dw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Tmo1nmvN0rvgz3Z8R8rkYE7ISLA=
In-Reply-To: <20241013110940.843@kylheku.com>
Content-Language: en-US, es-ES
Bytes: 1489

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.