Deutsch English Français Italiano |
<20241013110940.843@kylheku.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.in-chemnitz.de!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Kaz Kylheku <643-408-1753@kylheku.com> Newsgroups: comp.lang.awk Subject: Re: UID: Generating pointers in awk Date: Sun, 13 Oct 2024 18:19:47 -0000 (UTC) Organization: A noiseless patient Spider Lines: 23 Message-ID: <20241013110940.843@kylheku.com> References: <67098add$0$711$14726298@news.sunsite.dk> <vegube$oouk$1@dont-email.me> Injection-Date: Sun, 13 Oct 2024 20:19:48 +0200 (CEST) Injection-Info: dont-email.me; posting-host="454007c070158e98cf39f60c65df0e7f"; logging-data="832693"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kMajQNcr6YIhpceGMme6cJCoWzQ3adB4=" User-Agent: slrn/pre1.0.4-9 (Linux) Cancel-Lock: sha1:UwlZEIvNsEsVFhZbZVEBI9ifiUk= Bytes: 1886 On 2024-10-13, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: > On 11.10.2024 22:26, digi_cs wrote: >> Janis: What do you mean by "strong values"? >> >> See documentation: hid > > This answer makes no sense, and it explains nothing. I suspect "strong value" might be a superfluous synonym for "object". I.e. something that keeps its identity and state as you pass it around anywhere you like. It's strong because its pieces stay together, accessible through the same handle. In Awk, you can't pass aggregate values around other than strings. You can pass associative arrays down into functions, but not return them, or assign them from one variable to another. If arrays could be returned and assigned, they could be used to simulate objects with fields, like the way dicts are used in JS. (Which is not great, but better than hacks like indices into global arrays to simulate pointers.)