Groups | Search | Server Info | Login | Register
Groups > comp.lang.awk > #9819
| From | Janis Papanagnou <janis_papanagnou+ng@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.awk |
| Subject | Re: {} Questions |
| Date | 2024-08-22 00:51 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <va5r13$1id6$1@dont-email.me> (permalink) |
| References | <va3ua5$3ohv3$2@dont-email.me> <87o75mpaec.fsf@bsb.me.uk> <va4k6f$3rl80$1@dont-email.me> <va4lb8$3rq72$1@dont-email.me> <va5das$3vg5l$1@dont-email.me> |
On 21.08.2024 20:57, Mike Sanders wrote: > Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: >> [...] >> >> (There's some caveat with arrays in the function argument list.) > > Not sure why that would be, can you offer more detail? Assuming you meant the statement in parenthesis... - Most prominent one is the difference in parameter passing depending on the parameter type; arrays are passed by reference, scalars by value. So any change of array elements inside the function will change the array object on the caller's side. (There was also a case where awk got an issue in differentiating an array from a scalar in functions, but details evade my memory at the moment.) Janis
Back to comp.lang.awk | Previous | Next — Previous in thread | Next in thread | Find similar
{} Questions porkchop@invalid.foo (Mike Sanders) - 2024-08-21 05:35 +0000
Re: {} Questions Ben Bacarisse <ben@bsb.me.uk> - 2024-08-21 09:06 +0100
Re: {} Questions porkchop@invalid.foo (Mike Sanders) - 2024-08-21 11:48 +0000
Re: {} Questions Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-08-21 14:08 +0200
Re: {} Questions Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-08-21 14:10 +0200
Re: {} Questions porkchop@invalid.foo (Mike Sanders) - 2024-08-21 18:57 +0000
Re: {} Questions Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-08-22 00:51 +0200
Re: {} Questions Ben Bacarisse <ben@bsb.me.uk> - 2024-08-21 16:38 +0100
Re: {} Questions porkchop@invalid.foo (Mike Sanders) - 2024-08-21 19:01 +0000
csiph-web