From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12044 invoked from network); 9 Feb 2023 05:47:49 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Feb 2023 05:47:49 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1675921669; b=Dngl/sFvigayghCLt2ahBNZ5UYizdA8pElbehKKtD7WDC7ID+7zf0d6bRerfG3+/ZC1egGF/kX V9zEnnt80PddMZv0AuWte4VJVk+zIvedmFQNVxEN/wPRVyAmT1dlS/nEytc/I/tZyeTVLxk47S oGq9JqoYhij3PA6FkL+dmP5f+5Y7Lyv1q07u8DlQtdn28Qq3BAsPD0JHBabsWZ9AmECCW3B9Hq U5aWJcjgs/0pWgCGa4jqiXLYSFMj3zUC+J208UMBilXmwywWeiBGq/5rfR8LrONhbkjn+dqQkf 9FtpsbD4d/JiAH5cG0CbM3gexiT6Jow8oY9wM8WzlLENVw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f41.google.com) smtp.remote-ip=209.85.218.41; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1675921669; bh=xefi4XHvsLa0Cq67SSI8YtAXN9kzaKL2SLGKqPa3ivw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=El4r1zD/3UHTq1HQ1uirPFhPQkHER1y47B2puGcsZ3nk5bsOUhQBeUkN4PnHINvEzoogKMVhhr PhWtOcQBGLxbPykTPMqygt1LJ2vhBn7ZZ4w71T5B+z8ZBVgqXyDMhjGB6dMbCFdPgJuSWIuYnv Ii+/gakYLRvIdR4QLqJVKuf2Vl1JRUo0us3gcUZfSqazTAKdq0cRUc41UkG7wyNrZJ/w6tmsx5 T+UdLgDzXC91KuKLqcB/H9yAOlivlr2ZeliQoUf7iQ+NA0aKPYxUjlFI4UYgd6nCe2q6JgTGAV g42/RRNHt2Pl80vz+Qe3efX+LlB9i/fHqs7LHM3LYKNLaA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=4HGPsNkNXPakC+tiysDdUpwmk668mmTBipKr2M0L2kc=; b=Y4CDc45zLTKfbZl7MkGBBKrd/1 m3Om2sQ9LP7EG6cVNPYiuVgxKxvomI3D69vUH+6mKe3DTH+E7HbB9z7XP1nB55RT5U6ZaBnzcBgyZ ajEFApOsUg/lOpgSJnjBwPfKfoj+xy+yttjGBzySIE9Nh6tV3nGW2m2vN516h8TAzXZZlJjoPae8y ZAgPMjnY2LEaFDrMqwEUcTuFoZ9D66pht1k1csRMJWassnfj64zGyTJjSQUlUxeP6LGOqC4n+ToSx KEKsG9+zMEHvB6IekAp0AuPCtGutlKnkM9KsRfxCZEAU07l3BdqfZeMV0gxhQOO9/ULNS/SgGXsq8 XpZhlOtQ==; Received: by zero.zsh.org with local id 1pPzmf-000EvN-82; Thu, 09 Feb 2023 05:47:49 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f41.google.com) smtp.remote-ip=209.85.218.41; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f41.google.com ([209.85.218.41]:38443) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pPzkx-000EZG-Kk; Thu, 09 Feb 2023 05:46:04 +0000 Received: by mail-ej1-f41.google.com with SMTP id gr7so3219737ejb.5 for ; Wed, 08 Feb 2023 21:46:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4HGPsNkNXPakC+tiysDdUpwmk668mmTBipKr2M0L2kc=; b=71HTfE0bwvjmYG1OxLIyvVwoeCqMlO3L/EzQmhUjPpfNAA3iR9qmchqSF6R8M/N1jN VQc1xwyt2X4sX2f0MqFyg+a+H7SIHLA15AKkyUAvZO7U7iVHDCQvvYKlrL/9PoyHgAoa gTk0xVe6Ha1ndoGuU81izZ5B/Sg5zV3JIqu0y4OlG1h72hL/B/Q0Af4Rw/9GSK8NfysP izD6qUqxPOVH9wKVtwV0CL4hIDai8apymaFld9vyxejPuGnBThtK1pGxTIj0yd1c1lgx Mw57/Km/KuBJ44ZdMZ2D4iV402tb61QBMgrx+Hp80C2uS74vsqhpZyAPKSFIHk4wr1NU Q1Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4HGPsNkNXPakC+tiysDdUpwmk668mmTBipKr2M0L2kc=; b=pTj6MHglAKf+8+hCxUTN95gcgSlhg2z4i6KoYFmUzB2Az+NH6k0zI8ZxkvOVEZZcot +iM0qF5Att3PTYmDE+D1fkoT2hI94Dm+D26kXUhzd4yPidL6u9BEBCQlzIdDwqJkb9vX jFD+Q4NuC433Ir9D4YjAmGXFSH43r91tkkwTGkzyPrI89pjTA5S9GmmkVcDEvxMbuq4N Io4ac/YP4FOlT3LOiA/WwZx0HST/+NjZ8E7QW4HG+Hcx0wwaEOr9Ca18Y/FaUc8yesOc HH7MenYMa/bxQqlnig1FEmMyZoJhGNMWq8Au1DQTN7W+oKLALsNQGC4KSg8ncWSdMpyC QrEw== X-Gm-Message-State: AO0yUKWuDg5Ltxv2yQN/2ugw94TGjeXOoq4VGjxwumOaaJVbP+WGvvjS 1uv7ANzQegFcgI2E44Dsk3JCEnLwWFoHRNXwo1OLAw== X-Google-Smtp-Source: AK7set/qPPaclX+eG7GnoxsK1yOr8fxTAte941/6GjEL26R3X81W7GkLy5wqJBOhtrVCwI0qVYjEzLtQ4c7VfypNdTg= X-Received: by 2002:a17:906:4dc7:b0:877:e1ef:e49a with SMTP id f7-20020a1709064dc700b00877e1efe49amr2290470ejw.147.1675921563273; Wed, 08 Feb 2023 21:46:03 -0800 (PST) MIME-Version: 1.0 References: <67689-1675827940.088548@BxvG.D9_b.7RzI> <12608-1675903622.800470@Xj82.e3y1.svhG> <25878-1675908060.317862@x_tj.49MY.g4Qe> In-Reply-To: <25878-1675908060.317862@x_tj.49MY.g4Qe> From: Bart Schaefer Date: Wed, 8 Feb 2023 21:45:51 -0800 Message-ID: Subject: Re: [PATCH 1/3]: Add named references To: Oliver Kiddle Cc: Zsh workers Content-Type: text/plain; charset="UTF-8" X-Seq: 51388 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Wed, Feb 8, 2023 at 6:01 PM Oliver Kiddle 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 ??