Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: One possible answer to typeset vs. unset
- X-seq: zsh-workers 47725
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: One possible answer to typeset vs. unset
- Date: Fri, 4 Dec 2020 16:28:07 -0800
- Archived-at: <https://zsh.org/workers/47725>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-12/CAH%2Bw%3D7aYZk%3DCh_ObEeuSQEnVR6%2BOA_s3Utoct7bR4U3oBPn-LA%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-oi1-f176.google.com) smtp.remote-ip=209.85.167.176; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=5eKDUD5QxeXBoQF9Uq65T10jAjdyf87l9joVgaw2OLc=; b=VrxsnA9sxrMutkfl4nk260GZZvmbNynmCqBpQyW/dkAznUBQbYePbZISf6cLBmQb5L GYGSnuueRMd1+1bho4TKG/6g9/PWzptT1x5BjdrNquUVBa13sZPiA3O8sqfG8nEe61PB EdI+CX9WO0BTPhjPS3o33hqBF6BplVtmirt/a9vhK2/mI+6cD5Vfbuih4r6FhQq8S++z JZmLqAoidC+27SIQEMgjEOuoRUID41pdPO9nUkJ9qNga08+QXpR2XHtbC7hJxGwY5/Hr wgQIprtq976HEKrGiYCKR0a1ApAP4AUox1WHgPkSkgmr8hP6iKhsXCIlqmPwfC3psbwU pfxw==
- In-reply-to: <CAH+w=7YxvpfjxCP9i9fHSfu0TWXpiCqXrmLkiVDDiDjZWLC8xQ@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <CAH+w=7Zh8URUiLF2n1x-ZrvKO+=JC8wf+n692sRsFTRbkJrzXw@mail.gmail.com> <CAMP44s2gZnM_JAi78gJwB+uX75Sdx0MQPkW7SZ6tUk85xEjvQg@mail.gmail.com> <CAH+w=7a0es6W_Si9YbQzszzYBSuubmocot_8goywaL_Owb=pjw@mail.gmail.com> <CAMP44s3y2zqbG=8Zxqmn5RcwHC-CF2VaiwADhUbj2AokRKndkA@mail.gmail.com> <CAH+w=7YxvpfjxCP9i9fHSfu0TWXpiCqXrmLkiVDDiDjZWLC8xQ@mail.gmail.com>
- Sender: zsh-workers-request@xxxxxxx
On Fri, Dec 4, 2020 at 7:49 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> The scalar struct param of a tied pair stores a direct pointer to the
> internal array value of the array struct param, and upon assignment
> modifies it without referring to the containing struct.
>
> I think this can be fixed but I don't want it to become inefficient.
Fix for this is now pushed to the declarednull branch. It requires an
extra getnode() the first time a tied scalar is assigned after being
declared, and only when both the scalar and the array were declared
uninitialized. So unless one is repeatedly creating/discarding tied
pairs, it shouldn't make much difference.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author