From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Declaring a local dynamic variable? Date: 25 Sep 2013 08:58:37 GMT Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1380099622 29725 80.91.229.3 (25 Sep 2013 09:00:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Sep 2013 09:00:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 25 11:00:24 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VOkxK-00084J-CF for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Sep 2013 11:00:22 +0200 Original-Received: from localhost ([::1]:50944 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOkxJ-0008Dl-VF for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Sep 2013 05:00:21 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-X-Trace: individual.net yBXYPCJEFD0pplhp4P9WyA9bbAr9NaMM0xlqTrQ8a/4XIN7El+ Cancel-Lock: sha1:agRIUwZqPJ23I1PwtRO86Ydj8aM= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/pre1.0.0-18 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:201281 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93549 Archived-At: Barry Margolin wrote: > In article > , > Joost Kremers wrote: > >> Barry Margolin wrote: >> > In article >> > , >> > Joost Kremers wrote: >> >> Well, it would be great if the byte compiler could distinguish between >> >> the two cases, but apparently it's not. So I guess the question comes >> >> down to how easy/difficult would it be to implement a compiler that can? >> > >> > On what basis would it distinguish them? Search all packages to see if >> > any of them declare the variable? >> >> I realise that's a rhetorical question, but that wouldn't be a very good > > Maybe the second one is slightly rhetorical, but the first certainly > wasn't. The difficulty isn't in implementation, it's in defining what > you mean by "a compiler that can". You can't implement something without > a specification of what it's supposed to do, and "do the right thing" is > not really detailed enough. That was basically what I was trying to say, though I may not have made myself clear. In order to implement a compiler that can distinguish between variable names that are used for dynamic bindings and variable names with typos, you first need to figure out how the two can be distuinguished without human intervention, and then decide how much of that you want to implement. -- Joost Kremers joostkremers@fastmail.fm Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)