From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: e and pi Date: Sat, 18 Sep 2010 00:17:04 +0200 Message-ID: References: <8739t9xpt2.fsf@stupidchicken.com> <874odoweqm.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284761844 24522 80.91.229.12 (17 Sep 2010 22:17:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Sep 2010 22:17:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 18 00:17:23 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 1OwjFC-0007NV-Hf for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 00:17:22 +0200 Original-Received: from localhost ([127.0.0.1]:46162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwjFB-0007NU-UF for ged-emacs-devel@m.gmane.org; Fri, 17 Sep 2010 18:17:21 -0400 Original-Received: from [140.186.70.92] (port=36361 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwjF0-0007JE-3r for emacs-devel@gnu.org; Fri, 17 Sep 2010 18:17:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwjEy-00005s-JQ for emacs-devel@gnu.org; Fri, 17 Sep 2010 18:17:10 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:55099) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwjEy-00005k-Gl for emacs-devel@gnu.org; Fri, 17 Sep 2010 18:17:08 -0400 Original-Received: from ceviche.home (vpn-132-204-232-179.acd.umontreal.ca [132.204.232.179]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o8HMH5go013314; Fri, 17 Sep 2010 18:17:06 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id E67A766289; Sat, 18 Sep 2010 00:17:04 +0200 (CEST) In-Reply-To: <874odoweqm.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 17 Sep 2010 11:50:57 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3625=0 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:130369 Archived-At: >> in the current lexbind branch (where e is defined as a global/dynamic >> variable), the below code would not do the same: >> >> (defun make-inc (e) >> (lambda (f) (+ e f))) >> >> because "e" happens to be a predefined global variable with >> dynamic-scoping semantics. > This doesn't sound right---it means that people will have to make sure > their function args do not coincide with any defvar, defined anywhere. > It won't just be "e" and "pi" causing problems. Someone might write > (defun froob (argv) > (lambda (f) (cons f argv))) > and have that fail, because "argv" is a defvar defined in startup.el. Exactly: hence the new warning. Stefan