From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: e and pi Date: Sat, 18 Sep 2010 12:21:02 +0200 Message-ID: References: <8739t9xpt2.fsf@stupidchicken.com> <874odoweqm.fsf@stupidchicken.com> <83hbhnz7z2.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1284805852 19919 80.91.229.12 (18 Sep 2010 10:30:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Sep 2010 10:30:52 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 18 12:30:50 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Owugz-0003nz-Ed for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 12:30:49 +0200 Original-Received: from localhost ([127.0.0.1]:43307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owugy-0000sS-AU for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 06:30:48 -0400 Original-Received: from [140.186.70.92] (port=35214 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owugp-0000q8-Cr for emacs-devel@gnu.org; Sat, 18 Sep 2010 06:30:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwuXp-0007tm-F9 for emacs-devel@gnu.org; Sat, 18 Sep 2010 06:21:22 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:43737) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwuXp-0007tZ-77 for emacs-devel@gnu.org; Sat, 18 Sep 2010 06:21:21 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OwuXh-0007ms-Kg for emacs-devel@gnu.org; Sat, 18 Sep 2010 12:21:13 +0200 Original-Received: from dial-181118.pool.broadband44.net ([212.46.181.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Sep 2010 12:21:13 +0200 Original-Received: from eller.helmut by dial-181118.pool.broadband44.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Sep 2010 12:21:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dial-181118.pool.broadband44.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:zE/y9tn0OeLj1YAmJc42KxYgPSE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130388 Archived-At: * Eli Zaretskii [2010-09-18 10:01] writes: >> From: Helmut Eller >> Date: Fri, 17 Sep 2010 18:18:25 +0200 >> >> I once had a function with an argument called system-name. Suddenly >> Emacs started to complain that some files are locked by some other user. >> How many people now that system-name is a global variable and used by >> the file-locking code? The lesson is that Emacs should not pre-define >> global variables with names that are likely candidates for local >> variables. > > What you describe as a big surprise is actually known to every C/C++ > programmer: some names are "reserved by the implementation" and should > not be used by the application code. I don't see how that could be relevant here. C/C++ doesn't use dynamic scoping; function arguments are statically scoped. And C++ has namespaces so it's even less relevant. Helmut