From: "Bart Schaefer" <schaefer@brasslantern.com>
To: zsh-workers@math.gatech.edu
Subject: Re: sorting/uniq-ing an array?
Date: Tue, 11 Aug 1998 10:59:16 -0700 [thread overview]
Message-ID: <980811105916.ZM32066@candle.brasslantern.com> (raw)
In-Reply-To: <vbg1f3c19s.fsf@snake.isode.com>
On Aug 11, 10:31am, Bruce Stephens wrote:
} Subject: Re: sorting/uniq-ing an array?
}
} "Bart Schaefer" <schaefer@brasslantern.com> writes:
}
} > Standard linked pairs of arrays and colon-arrays behave that way,
} > yes. I'm not (yet) suggesting adding that sort of linkage. I'm
} > interested only in being able to declare a colon-array variable.
} > For example, I can't think of any reason to create ld_library_path
} > as an array.
}
} Being able to create new special variables would be sufficient for
} this specific case.
There are lots of kinds of special variables besides just colon-arrays.
Most of them involve more special handling than just changing the set/get
functions for the values. On further inspection I now understand that
colonarr{set,get}fn are assuming that there's a global char ** somewhere
(pointed to by the param struct) in which to store the associated array
representation, so it's not merely a matter of changing the functions
even for this case.
} I was playing around with a variety of installed
} Tcl libraries, and it was handy to change my LD_LIBRARY_PATH quite a
} lot interactively.
vared works a lot better on colon-arrays (scalars) than on true arrays.
} Indeed, arrays have some nice syntax in zsh, which might be
} convenient. Or are you suggesting using the same syntax for
} colon-arrays?
I'm not (at this point) suggesting changing any syntax other than to
add something to typeset.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
prev parent reply other threads:[~1998-08-11 18:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <19980809025636.18149@astaroth.nit.gwu.edu>
[not found] ` <980809044123.ZM19065@candle.brasslantern.com>
[not found] ` <19980809123608.01170@astaroth.nit.gwu.edu>
[not found] ` <vbvho1xe7s.fsf@snake.isode.com>
1998-08-10 15:55 ` Bart Schaefer
1998-08-10 16:25 ` Andrej Borsenkow
1998-08-10 16:32 ` Zefram
1998-08-10 18:13 ` Bart Schaefer
1998-08-11 9:31 ` Bruce Stephens
1998-08-11 17:59 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=980811105916.ZM32066@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).