From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114 invoked by alias); 17 Oct 2013 09:06:15 -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: 31835 Received: (qmail 20674 invoked from network); 17 Oct 2013 09:06:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f5-b7ef66d00000795a-29-525fa87ea325 Date: Thu, 17 Oct 2013 10:06:04 +0100 From: Peter Stephenson To: Zsh hackers list Subject: Re: Important discussion about "local" on the POSIX list Message-id: <20131017100604.42e2c03a@pwslap01u.europe.root.pri> In-reply-to: References: 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+NgFuphluLIzCtJLcpLzFFi42I5/e/4Fd26FfFBBi8P8VgcbH7I5MDoserg B6YAxigum5TUnMyy1CJ9uwSujFOv57IUTGGvuHltLWsD4zXWLkZODgkBE4mfdy4xQdhiEhfu rWfrYuTiEBJYyijxftdnRghnOZPEh/9vwDpYBFQljq69zAxiswkYSkzdNJsRxBYR0JLYcfIk 0CQODmEBR4mruwNAwrwC9hKHpjexg9icAsESy+4uYAGxhQQCJB4deQYW5xfQl7j69xPUEfYS M6+cYYToFZT4MfkeWD0z0PjN25pYIWx5ic1r3jJPYBSYhaRsFpKyWUjKFjAyr2IUTS1NLihO Ss810itOzC0uzUvXS87P3cQICcGvOxiXHrM6xCjAwajEwztjeVyQEGtiWXFl7iFGCQ5mJRHe 1Uvig4R4UxIrq1KL8uOLSnNSiw8xMnFwSjUwbvglFJt8jj9iTchxnYsORxb9awgw6k9YJLJ4 l3PUhIAzLpVpP95+LLhjuN/1Nt/MT4v15vrekamxknmTM1VeZ6tJ77nn2j6TzuX2/H75PTTv fbjCebbvp9cdcFk+q7XTYOP8vRmP7+3xi3qT4OtWPucEh1Fk1LWbVw0nbTn3PoNv8rmTarLJ z5RYijMSDbWYi4oTAcclWoIfAgAA On Wed, 16 Oct 2013 17:27:34 -0700 Bart Schaefer wrote: > austin-group is discussing a proposal to make local variables > lexical/static in scope, rather than dynamic in scope as in bash and > zsh. > > I don't seem to be able to post to that list, so if there's someone > here who still can, please have a gander and chime it. I'm not on that list at the moment --- I didn't sign up again when I got transferred from CSR. > It would be rather difficult in zsh's implementation to enforce > lexical scoping, so we'd be faced with either giving up POSIX > compliance or doing a massive rewrite. It does seem unlikely we'd be implementing lexical scoping. If we ever did, it would have to be an option. The assumption that we can address local variables in enclosing functions is very widely made in function suites, presumably including many we never see. pws