Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: `try' syntax

Bart wrote:

> Hmm ... wouldn't
> 	local -a +h reswords dis_reswords
> cover all possible cases?  (Hmm, again; no, it seems it does not, because
> either the values aren't restored and/or assigning to these arrays doesn't
> accomplish enable/disable.  Odd, but oh, well.)

It's not odd if you look briefly at how everything in the parameters
module is implemented. When a value is looked up it gets the
information from the internal structure and returns it. Making local
save and restore these internal structures would be fairly messy.
Ideally zsh would store all internal information directly in parameters
so local would work on them automatically. In the long term that'd be a
better thing to aim at than adding lots of local* options.

> On Tue, 15 Jun 2004, Peter Stephenson wrote:

> > As things stand I'm not sure I'm going to have any free time before
> > 2008, but if I do is this worth trying?  (In other words, is it
> > reasonably agreeable to everyone interested?)

I'm agreeable to it.


Messages sorted by: Reverse Date, Date, Thread, Author