From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: defvars at compile time Date: Fri, 16 Sep 2005 16:59:42 +0200 Message-ID: <85psr9t5wh.fsf@lola.goethe.zz> References: <858xxxuupf.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1126886244 16274 80.91.229.2 (16 Sep 2005 15:57:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2005 15:57:24 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 16 17:57:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EGIVj-00006e-4e for ged-emacs-devel@m.gmane.org; Fri, 16 Sep 2005 17:52:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EGIVi-0002uD-7E for ged-emacs-devel@m.gmane.org; Fri, 16 Sep 2005 11:52:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EGISz-0002Ls-NO for emacs-devel@gnu.org; Fri, 16 Sep 2005 11:49:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EGISv-0002Iu-LW for emacs-devel@gnu.org; Fri, 16 Sep 2005 11:49:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EGISu-0002C3-FC for emacs-devel@gnu.org; Fri, 16 Sep 2005 11:49:28 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EGILc-0001hT-Fx for emacs-devel@gnu.org; Fri, 16 Sep 2005 11:41:56 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1EGILb-0000eN-Hp; Fri, 16 Sep 2005 11:41:55 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 70A371C460AC; Fri, 16 Sep 2005 16:59:42 +0200 (CEST) Original-To: lekktu@gmail.com In-Reply-To: (Juanma Barranquero's message of "Fri, 16 Sep 2005 15:25:52 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:42999 Archived-At: Juanma Barranquero writes: > On 9/16/05, David Kastrup wrote: > >> Actually, I get "might be undefined at run time" in some similar >> eval-when-compile wrapped situations. > > Maybe with some unusual combination of circumstances. > >> And having different semantics >> during compilation and execution also is not a good idea. > > There's almost zero semantics in `(eval-when-compile (defvar xxx))'. > It doesn't generate code, or assign any value, or affect dynamic > bindings (on normal situations, which we're discussing now). Yet. I believe that itmakes a difference with lexical scope, where it also serves as a declaration that let-bindings to that variable should have dynamic scope. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum