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: constant `e' Date: Fri, 09 Feb 2007 10:08:51 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171033771 4939 80.91.229.12 (9 Feb 2007 15:09:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Feb 2007 15:09:31 +0000 (UTC) Cc: Drew Adams , Emacs-Devel To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 09 16:09:29 2007 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.50) id 1HFXNM-0004NJ-TN for ged-emacs-devel@m.gmane.org; Fri, 09 Feb 2007 16:09:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HFXNM-0000HJ-8O for ged-emacs-devel@m.gmane.org; Fri, 09 Feb 2007 10:09:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HFXMr-00009a-RL for emacs-devel@gnu.org; Fri, 09 Feb 2007 10:08:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HFXMr-00008O-6Z for emacs-devel@gnu.org; Fri, 09 Feb 2007 10:08:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HFXMq-000085-T9 for emacs-devel@gnu.org; Fri, 09 Feb 2007 10:08:52 -0500 Original-Received: from tomts20.bellnexxia.net ([209.226.175.74] helo=tomts20-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HFXMq-00058i-CR for emacs-devel@gnu.org; Fri, 09 Feb 2007 10:08:52 -0500 Original-Received: from pastel.home ([70.55.81.74]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070209150851.ZGQJ24907.tomts20-srv.bellnexxia.net@pastel.home> for ; Fri, 9 Feb 2007 10:08:51 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 38A347F3F; Fri, 9 Feb 2007 10:08:51 -0500 (EST) In-Reply-To: (Juanma Barranquero's message of "Fri\, 9 Feb 2007 10\:32\:09 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:66170 Archived-At: > I find very curious this change by Stefan: > ;; It's too inconvenient to make `e' a constant because it's used as > ;; a temporary variable all the time. > (defvar e (exp 1) "The value of e (2.7182818...).") > But > (let ((pi 3.2)) pi) => 3.2 > so there's no problem with constants and temporary variables. I think > that must be related to some local patches he mentioned a while ago > for allowing real constants... > Am I right, Stefan, or did I misunderstand this comment in the code? Not quite. I discovered the problem thanks to my local hack that makes `defconst' into immutable variables, but the reason why I propagated this to the repository is that even tho the current implementation of `defconst' does not currently make variables immutable, it is its intention. In any case I completely agree that `e' should be renamed, maybe to something like `math-e'. Stefan