From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43649-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id e5d9e7c1 for ; Tue, 9 Oct 2018 07:31:57 +0000 (UTC) Received: (qmail 7555 invoked by alias); 9 Oct 2018 07:31:46 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43649 Received: (qmail 23546 invoked by uid 1010); 9 Oct 2018 07:31:46 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm1-f43.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.128.43):SA:0(-1.9/5.0):. Processed in 0.859633 secs); 09 Oct 2018 07:31:46 -0000 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state: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=N0X+YgzPkBP+08Hs6owxbNx0/5w8SXQycMMWyaors0yxv3Bh/TV0xBqlNEEKv5Hx2n ofDDwrQBE3K72uZgQD3TsRyJlaYX/Q7jqbAOJHKY6aHprSUdutxYe49rwi0PwnAuz/9T eGXUimrPL0QmnVfssr8S/EjzDdS1MYUd5U0S0dN96DNgKOq896Bp1rXYxOUGnf3AOC9d UKyQqbwFQMIuHA3n+uPIlngvdPBFAxJdA+v4J3OWE1Ut+yeWcJmLTyzZRwRTbBh39Tgs LTR7lsnERU5uc/6xts09sNUASkzauaoe+OOvnePO0w/q6iHseEDSigliA+6McGydxBTw l60w== X-Gm-Message-State: ABuFfoiCKIYZklNq/mjgRs7t4hPnQEQvfUSq+jIqJM4BHfJO+Xh7+FCr WItd9N1CfOhNSKvowtA/bqYeZTxOqTk= X-Google-Smtp-Source: ACcGV61HUSFgFUqVMumqYdrudgQmLWs/LOlWJUVu0ZrAVnj878172s8R5zYJSRwJT7zoQ9S+bPwOeQ== X-Received: by 2002:a1c:1782:: with SMTP id 124-v6mr929414wmx.133.1539070300457; Tue, 09 Oct 2018 00:31:40 -0700 (PDT) Date: Tue, 9 Oct 2018 08:31:38 +0100 From: Stephane Chazelas To: TS Cc: Zsh workers Subject: Re: zsh-workers 43616, typeset doesn't report tied parameters Message-ID: <20181009073138.c6uxzj6uljevwqcx@chaz.gmail.com> Mail-Followup-To: TS , Zsh workers References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 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