emacs-devel
[Top][All Lists]
Advanced

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

Re: What does byte-compile a variable containing a lambda do?


From: Andreas Schwab
Subject: Re: What does byte-compile a variable containing a lambda do?
Date: Wed, 03 Jun 2009 10:45:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux)

Lennart Borgman <address@hidden> writes:

> The help text for byte-compile says
>
>     byte-compile is a compiled Lisp function in `bytecomp.el'.
>
>     (byte-compile form)
>
>     If form is a symbol, byte-compile its function definition.
>     If form is a lambda or a macro, byte-compile it as a function.
>
> I do not understand the last sentence. What happens? If a variable
> contains a lambda and you do
>
>     (byte-compile VAR-WITH-LAMBDA)

Since byte-compile is a regular function, it can only see the value it
gets passed.  So unless you pass it a symbol (first case) it can only
return the byte compiled form without side effect.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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