Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: 3.1.5 - sample associative array implementation
- X-seq: zsh-workers 4618
- From: Timothy Writer <Tim.Writer@xxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: 3.1.5 - sample associative array implementation
- Date: 12 Nov 1998 19:04:56 -0500
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: "Bart Schaefer"'s message of "Thu, 12 Nov 1998 01:23:58 -0800"
- References: <9811111358.AA51361@xxxxxxxxxxxxxxxxx> <vb1znanvcm.fsf@xxxxxxxxxxxxxxx> <m3iugmj8y8.fsf@xxxxxxxxxxxxxxxxx> <981111125236.ZM3587@xxxxxxxxxxxxxxxxxxxxxxx> <m3d86t7235.fsf@xxxxxxxxxxxxxxxxx> <981112012358.ZM9722@xxxxxxxxxxxxxxxxxxxxxxx>
"Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx> writes:
> On Nov 12, 3:22am, Timothy Writer wrote:
> } Does zsh have namerefs?
>
> No, zsh does not. It wouldn't be hard to implement, though. Can you tell
> what ${!arrayname} would do? (My recent patch simply ignores the `!' in
> that event.)
Sure
typeset -A foo
foo[bar]=baz
echo ${!foo}
just prints "foo". Makes sense because foo is not a nameref.
--
Tim Writer Tim.Writer@xxxxxxxxxx
FTL Solutions Inc.
Toronto, Ontario, CANADA
Messages sorted by:
Reverse Date,
Date,
Thread,
Author