From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4463 invoked by alias); 29 Sep 2015 08:39:16 -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: X-Seq: 36694 Received: (qmail 19227 invoked from network); 29 Sep 2015 08:39:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f5-f794b6d000001495-eb-560a4e2b6cb3 Date: Tue, 29 Sep 2015 09:39:05 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Proof of concept: "static" parameter scope Message-id: <20150929093905.2d36302e@pwslap01u.europe.root.pri> In-reply-to: <150928182327.ZM29365@torch.brasslantern.com> References: <150924192305.ZM2680@torch.brasslantern.com> <21593.1443459899@thecus.kiddle.eu> <20150928175834.GE3670@isis.sigpipe.cz> <150928182327.ZM29365@torch.brasslantern.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsVy+t/xK7raflxhBqs/MFkcbH7I5MDoserg B6YAxigum5TUnMyy1CJ9uwSujBUX6wqWsVfsmvSCpYHxFmsXIyeHhICJxL9l35ghbDGJC/fW s3UxcnEICSxllGjb95kdwpnBJPGz4TkbSJWQwDZGie+P0kFsFgFVib7Je5hAbDYBQ4mpm2Yz gtgiAuISZ9eeZwGxhQXMJR4tngO2jVfAXuLH9w9ANgcHp4CVxL+Z7hDz/zJKXL80AayeX0Bf 4urfT0wQF9lLzLxyhhGiV1Dix+R7YDXMAloSm7c1sULY8hKb17xlhrhNXeLG3d3sExiFZiFp mYWkZRaSlgWMzKsYRVNLkwuKk9JzjfSKE3OLS/PS9ZLzczcxQkL26w7GpcesDjEKcDAq8fAa 9HGGCbEmlhVX5h5ilOBgVhLhPePMFSbEm5JYWZValB9fVJqTWnyIUZqDRUmcd+au9yFCAumJ JanZqakFqUUwWSYOTqkGxu4nJ9edF2PcPnOBsg+HhBFrjYCKzYmfeRfPCnEe+/eQRzm7YlnQ uROelxN+LHBR2KIwe2PgvCkOXi8KtxV8unGDN2Q1x5Qr/HOqj522LXZhjO5krbv5UP/KO8+r u6TX33rxZ8sS9aA/KSZNzCd0zeI9biZtmCgveffAsjOChdWVF9m0snetKFFiKc5INNRiLipO BABDlLEkVQIAAA== On Mon, 28 Sep 2015 18:23:27 -0700 Bart Schaefer wrote: > On Sep 28, 9:42pm, Mikael Magnusson wrote: > } > } What about "private" instead of static though? If the intention is to > } hide it from called functions, it is somewhat closer to that concept, > } if not just the normal word. > > Once again it's not the same as C++ "private" if that's a concern, but > I do lean in this direction. > > Make up a completely new term? "limited" ? "bounded" ? "scoped" ? I quite like "private" and I think the C++ meaning is distant enough that it's not really a confusion. It's the only name that suggests the scope is limited to right here. "var" sounds a bit much like the name of a temporary variable. If you really wanted to emphaise the C connection, the name would be "auto", but that doesn't make sense for zsh since it doesn't distinguish static from dynamic scope. pws