Groups | Search | Server Info | Login | Register


Groups > comp.lang.awk > #9850

Re: UID: Generating pointers in awk

From Kaz Kylheku <643-408-1753@kylheku.com>
Newsgroups comp.lang.awk
Subject Re: UID: Generating pointers in awk
Date 2024-10-13 18:19 +0000
Organization A noiseless patient Spider
Message-ID <20241013110940.843@kylheku.com> (permalink)
References <67098add$0$711$14726298@news.sunsite.dk> <vegube$oouk$1@dont-email.me>

Show all headers | View raw


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.)

Back to comp.lang.awk | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: UID: Generating pointers in awk "digi_cs" <cosmogen@gmail.com> - 2024-10-11 23:26 +0300
  Re: UID: Generating pointers in awk Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-10-13 19:00 +0200
    Re: UID: Generating pointers in awk Kaz Kylheku <643-408-1753@kylheku.com> - 2024-10-13 18:19 +0000
      Re: UID: Generating pointers in awk Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-10-13 20:55 +0200
      Re: UID: Generating pointers in awk Manuel Collado <mcollado2011@gmail.com> - 2024-10-16 17:03 +0200
        Re: UID: Generating pointers in awk Kaz Kylheku <643-408-1753@kylheku.com> - 2024-10-16 18:49 +0000

csiph-web