Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh-workers 43616, typeset doesn't report tied parameters
- X-seq: zsh-workers 43649
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: TS <debts@xxxxxxx>
- Subject: Re: zsh-workers 43616, typeset doesn't report tied parameters
- Date: Tue, 9 Oct 2018 08:31:38 +0100
- Cc: Zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=vedmFkwhGwcVTuzvwbhzZfwbtK+HO5hP/owC5lcIdxQ=; b=VgoxZYFHN1Bs3jNXXPmdSvkqi3Oa84xTM+nkEEsIJLVi5Edn4muUpwEe6uDabC5P7O PBrxLfFX+WTRmKwnMhR7kPwe9vA7mFZyoDgxhLAq1BDAK5K6vhIH8NhWTZQYXCJbvxL/ +TM2iW6/DBT/njqSCYPz+D8ECHAyCRPJLj5BJZZCn03seEAEFrqT7WHhUUf9Mud9UCpg ZTmP5GJoc0FqH7Fj5EHCZyVyVVASe9RpTb/FuKeqK8X5yy65fmDfvi82ip5SFinCCsxX KwAMajzm4CgB21rc0at9FwvDOB8XomLvgy9mKqJZrwVlJCKUOJ1jmOtEG6bRajMR1WG5 8R4A==
- In-reply-to: <f181228f-ebf8-26bd-7c3a-578d29d4689a@xk2c.de>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: TS <debts@xxxxxxx>, Zsh workers <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <f181228f-ebf8-26bd-7c3a-578d29d4689a@xk2c.de>
2018-10-09 00:54:16 +0200, TS:
[...]
> IMHO when a readonly is tied, the newly tied var (either scalar or array what
> ever comes last) should take over the content AND the readonly flag in one go.
> OR a readonly should not be tieable at all.
[...]
I kind of agree. On the other hand, attributes are not mirrored
between pairs of tied parameters (anyway, most attributes only
apply to scalars and not arrays).
One could imagine someone wanting to make only the array or only
the scalar readonly to force modification using the other one.
readonly is kind of a programming aid (reminder that the
parameter should be constant). Tied parameters are really
designed for the LD_LIBRARY_PATH, INFOPATH... They are
different concepts that would generally not be used together I
would say.
One can always make both INFOPATH and infopath readonly if they
don't want it to be modified.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author