[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: labels usage
From: |
Stefan Monnier |
Subject: |
Re: labels usage |
Date: |
Tue, 12 Jun 2012 09:07:38 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
> (labels ((fx (arg) arg))
> (setq fn 'fx))
'fx evaluates to the *symbol* `fx', not the *function* `fx'. In Elisp
until Emacs-24, you can use pretty much interchangeably a function and
the symbol to which it is bound, but with lexical scoping this is not
true any more. CL's `labels' used to follow the "Elisp tradition" and
looked inside `quote' to turn that symbol into a reference to the
locally defined function. But that was fundamentally a bug.
Stefan