[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch for fields of `struct buffer'
From: |
Stefan Monnier |
Subject: |
Re: Patch for fields of `struct buffer' |
Date: |
Mon, 31 Jan 2011 10:22:41 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> One easy one is whether a new thread should inherit thread-local
> bindings from its parent thread. Our initial implementation did
> inherit, but later I found out that this is not common in the Lisp
> world.
> I.E., what should this display?
> (defvar var 0)
> (let ((var 1))
> (run-in-thread (lambda () (message "%d" var))))
I think any choice is acceptable, from a semantics point of view.
Maybe one of the two choices is "superior" in some sense, but it's not
clear which, and I doubt it matters much. So I think the option that
leads to the cleaner code (ideally, both for the current code, and for
any foreseeable alternative implementation we decide to use in some
distant future) should be preferred.
Stefan
- Re: Patch for fields of `struct buffer', (continued)
- Re: Patch for fields of `struct buffer', Richard Stallman, 2011/01/29
- Re: Patch for fields of `struct buffer', Tom Tromey, 2011/01/30
- Re: Patch for fields of `struct buffer', Stefan Monnier, 2011/01/30
- Re: Patch for fields of `struct buffer', Tom Tromey, 2011/01/31
- Re: Patch for fields of `struct buffer',
Stefan Monnier <=
- Re: Patch for fields of `struct buffer', Tom Tromey, 2011/01/31
- Re: Patch for fields of `struct buffer', Stefan Monnier, 2011/01/31
- Re: Patch for fields of `struct buffer', Tom Tromey, 2011/01/31
- Re: Patch for fields of `struct buffer', Stefan Monnier, 2011/01/31
- Re: Patch for fields of `struct buffer', Stefan Monnier, 2011/01/31
- Re: Patch for fields of `struct buffer', Tom Tromey, 2011/01/31
- Re: Patch for fields of `struct buffer', Stefan Monnier, 2011/01/31
- Re: Patch for fields of `struct buffer', David De La Harpe Golden, 2011/01/31
- Re: Patch for fields of `struct buffer', Tom Tromey, 2011/01/31
- Re: Patch for fields of `struct buffer', David De La Harpe Golden, 2011/01/31