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

Re: [PATCH 1/3]: Add named references

On Wed, Feb 8, 2023 at 6:01 PM Oliver Kiddle <opk@xxxxxxx> wrote:
> This isn't a self-reference because the local levels would be different.

Working on that.  Halfway there.

> And "self reference" in the error message should be hyphenated.

I copied that message verbatim from ksh93.  Can still change it, but
does it really matter?

> Maybe the code should have a safer mode for subscript evaluation.

See previous message.

> We already talked about this error message. But now it is a substring.
>   export ref
>   export: ref: can't change type of a named reference

The point at which it's necessary to catch that error would have to
lop off the subscript and re-evaluate the base variable name in order
to determine the thing being subscripted.  That seems like an
unnecessary amount of work.

How about
  can't change type via subscript reference

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