help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: the (declare special) declaration with lexical scope.


From: Emanuel Berg
Subject: Re: the (declare special) declaration with lexical scope.
Date: Sun, 23 Apr 2023 16:22:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Madhu wrote:

> binding it lexically elsewhere.  For example:
>
>      (let (_)
>        (defvar x)      ; Let-bindings of ‘x’ will be dynamic within this let.
>        (let ((x -99))  ; This is a dynamic binding of ‘x’.
>          (defun get-dynamic-x ()
>            x)))

You need this for the byte-compiler:

  (declare-function get-dynamic-x nil)

As for your question - that would be a dynamic let-closure and
not a lexical. Interesting. What would the implications be?

And see if you can use `dlet'.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]