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: Patch for fields of `struct buffer' Date: Mon, 31 Jan 2011 15:03:28 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296504229 10712 80.91.229.12 (31 Jan 2011 20:03:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2011 20:03:49 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 31 21:03:45 2011 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 1PjzyR-000599-Pl for ged-emacs-devel@m.gmane.org; Mon, 31 Jan 2011 21:03:43 +0100 Original-Received: from localhost ([127.0.0.1]:37643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjzyQ-0001sY-QY for ged-emacs-devel@m.gmane.org; Mon, 31 Jan 2011 15:03:42 -0500 Original-Received: from [140.186.70.92] (port=35337 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjzyE-0001r9-Eb for emacs-devel@gnu.org; Mon, 31 Jan 2011 15:03:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjzyD-0003mr-Ep for emacs-devel@gnu.org; Mon, 31 Jan 2011 15:03:30 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:29152 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PjzyD-0003mg-C2; Mon, 31 Jan 2011 15:03:29 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAFakRk1MCpTp/2dsb2JhbACkeHS+E4VOBIUTj2g X-IronPort-AV: E=Sophos;i="4.60,405,1291611600"; d="scan'208";a="89979732" Original-Received: from 76-10-148-233.dsl.teksavvy.com (HELO ceviche.home) ([76.10.148.233]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 31 Jan 2011 15:03:28 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 70195660DC; Mon, 31 Jan 2011 15:03:28 -0500 (EST) In-Reply-To: (Tom Tromey's message of "Mon, 31 Jan 2011 11:38:51 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.183 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:135341 Archived-At: Stefan> Variables that are captured by a closure are (by definition) lexically Stefan> scoped, so they should not be affected by Stefan> buffer/thread/keyboard-localness which only applies to Stefan> dynamically-scoped variables. > Ok, I think I see. I was trying to construct a test case and, IIUC, an > inner `let' would make a new lexically-bound variable, not dynamically > bind the outer one. Is that correct? Exactly. Basically, lexically scoped vars don't use the symbol's `value' cell at all, so their values only reside on the stack and other such places and they should interact with concurrency without any extra work, just like normal local C variables. > I would try it but last time I checked out lexbind, I couldn't get it to > build. Is it working now? I could build it last time I tried it, but I haven't tried recently, and it's been even (much) longer since I last bootstrapped it. Stefan