[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs Lisp and Guile
From: |
Richard Stallman |
Subject: |
Re: Emacs Lisp and Guile |
Date: |
Tue, 30 Jul 2002 23:54:54 -0600 (MDT) |
> Scheme variables are normally lexical. What do people normally do in
> Scheme when you want a dynamically scoped value?
In plain Scheme, you use 'dynamic-wind' to establish a dynamic
context. Entering and leaving that context will run specified
procedures that can swap values in and out of variables that should
have dynamically scoped values.
It is very undesirable for Lisp dynamic variables to be different
from Scheme dynamic variables. It makes the system specs incoherent.
Is it possible to extend dynamic-wind so that it can handle
buffer-local, frame-local, etc. contexts? Then a Lisp variable
could be handled with dynamic-wind as usual, and there would be
no divergence between Scheme variables and Lisp variables.
In Guile, we also have 'fluids'. A fluid is a normal object like a
cons pair that holds one object per thread. That is, fluids are our
mechanism for thread local variables.
Could this be unified with dynamic-wind also?
- Emacs Lisp and Guile, Richard Stallman, 2002/07/19
- Re: Emacs Lisp and Guile, Neil Jerram, 2002/07/20
- Re: Emacs Lisp and Guile, Richard Stallman, 2002/07/21
- Re: Emacs Lisp and Guile, Neil Jerram, 2002/07/24
- Re: Emacs Lisp and Guile, Richard Stallman, 2002/07/25
- Re: Emacs Lisp and Guile, Marius Vollmer, 2002/07/25
- Re: Emacs Lisp and Guile, Richard Stallman, 2002/07/27
- Re: Emacs Lisp and Guile, Marius Vollmer, 2002/07/30
- Re: Emacs Lisp and Guile,
Richard Stallman <=
- Re: Emacs Lisp and Guile, Neil Jerram, 2002/07/28
- Re: Emacs Lisp and Guile, Richard Stallman, 2002/07/29
Re: Emacs Lisp and Guile, Ken Raeburn, 2002/07/25