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

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

top-level lexical bindings


From: Joost Kremers
Subject: top-level lexical bindings
Date: 27 Jan 2014 23:00:06 GMT
User-agent: slrn/pre1.0.0-18 (Linux)

https://groups.google.com/forum/#!topic/gnu.emacs.help/Kb-0xh9h3mI

EN:SiS(9)
Hi,

When Emacs 24.1 was released and lexical bindings introduced, there was
apparently a problem with top-level lexical variables inside defuns:

Instead of writing

```
(let ((x))
  (defun foo ()
    (setq x ...)))
```

one had to write:

```
(let ((x))
  (defalias 'foo (lambda ()
                   (setq x ...))))
```

I was wondering if this issue has been resolved yet. I can't find
anything about it in the NEWS file, so I'm guessing not?


TIA

-- 
Joost Kremers                                   joostkremers@fastmail.fm
Selbst in die Unterwelt dringt durch Spalten Licht


reply via email to

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