[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: frame-local variables weirdness
From: |
Stefan Monnier |
Subject: |
Re: frame-local variables weirdness |
Date: |
Fri, 12 Oct 2007 12:33:40 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) |
> I'd much rather disallow variables that are both buffer-local and
> frame-local.
> We should not cavalierly disallow the use of features in combination
> just because there is a bug. Have you tried to fix those other
> problems? If not, you don't know that it is hard to do so.
The interaction of buffer-local and let-bound variables is already tricky
(and has suffered from several bugs over the years). When we add
frame-local variables to that, it gets yet nastier so I think we should only
support such a feature if there's a clear need for it. I don't see it.
Stefan
PS: As a matter of fact, I don't even see a need for frame-local variables
at all: they *are* used currently, but only because they exist.
The potential benefits of using frame-local variables rather than explicitly
using `frame-parameter' are:
- faster access thanks to caching.
- ability to influence the behavior of code which didn't expect the variable
to be frame-local.
None of the uses I can see benefit from those. They'd be just as happy
using explicit calls to frame-parameter, which would also simplify the
specbind and Fsymbol_value code (a piece of code that's pretty complex as
it stands), thus streamlining a heavily used code (especially compared to
the rarely used (mis)feature)).
- Re: frame-local variables weirdness, Juanma Barranquero, 2007/10/11
- Re: frame-local variables weirdness, Richard Stallman, 2007/10/12
- Re: frame-local variables weirdness,
Stefan Monnier <=
- Re: frame-local variables weirdness, Richard Stallman, 2007/10/14
- Re: frame-local variables weirdness, Juanma Barranquero, 2007/10/14
- Re: frame-local variables weirdness, David Kastrup, 2007/10/14
- Re: frame-local variables weirdness, Richard Stallman, 2007/10/15
- Re: frame-local variables weirdness, Stefan Monnier, 2007/10/15
- Re: frame-local variables weirdness, Stephen J. Turnbull, 2007/10/17
- Re: frame-local variables weirdness, Stefan Monnier, 2007/10/17
- Re: frame-local variables weirdness, Richard Stallman, 2007/10/18
- Re: frame-local variables weirdness, Stefan Monnier, 2007/10/18
- Re: frame-local variables weirdness, Richard Stallman, 2007/10/19