[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: run-with-timer does not display message
From: |
Emanuel Berg |
Subject: |
Re: run-with-timer does not display message |
Date: |
Sun, 20 Jul 2014 21:27:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Because they can be encoded different things it
>> makes sense calling this lexical (because the value
>> is simply read, not looked up) and not "static".
>
> It's also called "static scoping". And the name
> doesn't have much to do with the implementation
> technique used. It's called "lexical" because the way
> a particular identifier use is matched to a particular
> variable only depends on the shape of the program text
> rather than depending on its run-time behavior.
>
> ...
>
> No. CBV/CBR/CBN are orthogonal concepts to
> static/dynamic scoping.
Isn't CBR and dynamic alike in the sense than a value
is looked up somewhere outside of the "scope", say a
function in C, while CBV is lexical as the parameter is
just a way to refer to a value for convenience?
I don't know what CBN (call by name?) is but that in
the above sense would be dynamic as the name, once put
to use, is replaced by a value and that value has to be
looked up at that time.
If a reference is used as a reference, i.e., ignoring
what it refers to, then of course it is all the
same. It has to be looked up but otherwise why do it at
all?
>> 1. How do I put Emacs in lexical mode? Do I do that
>
> Put -*- lexical-binding:t -*- somewhere on the first
> line of your Elisp file.
So you can't do it for a specific function? I'm
starting to lean toward me preferring the backtick-comma
solution...
--
underground experts united
- Re: run-with-timer does not display message, (continued)
- Message not available
- Re: run-with-timer does not display message, Emanuel Berg, 2014/07/18
- Re: run-with-timer does not display message, Sebastian Wiesner, 2014/07/19
- Re: run-with-timer does not display message, Eli Zaretskii, 2014/07/19
- Re: run-with-timer does not display message, Stefan Monnier, 2014/07/19
- RE: run-with-timer does not display message, Drew Adams, 2014/07/19
- Message not available
- Re: run-with-timer does not display message, Emanuel Berg, 2014/07/19
- Re: run-with-timer does not display message, Stefan Monnier, 2014/07/19
- Lexical and Dynamic Scope, Robert Thorpe, 2014/07/19
- Re: run-with-timer does not display message, Sebastian Wiesner, 2014/07/20
- Re: run-with-timer does not display message, Stefan Monnier, 2014/07/21
- Message not available
- Re: run-with-timer does not display message,
Emanuel Berg <=
- Re: run-with-timer does not display message, Stefan Monnier, 2014/07/21
- Message not available
- Re: run-with-timer does not display message, Emanuel Berg, 2014/07/21
- Re: run-with-timer does not display message, Stefan Monnier, 2014/07/24
- Message not available
- Re: run-with-timer does not display message, Emanuel Berg, 2014/07/20
- RE: run-with-timer does not display message, Drew Adams, 2014/07/20
- Message not available
- dynamic and lexical scope, attempted summary with example (was: Re: run-with-timer does not display message), Emanuel Berg, 2014/07/20
- Re: dynamic and lexical scope, attempted summary with example, Thien-Thi Nguyen, 2014/07/21
- Re: dynamic and lexical scope, attempted summary with example, Thorsten Jolitz, 2014/07/21
- Message not available
- Re: dynamic and lexical scope, attempted summary with example, Emanuel Berg, 2014/07/21
- Re: dynamic and lexical scope, attempted summary with example, Michael Heerdegen, 2014/07/21