all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: What does byte-compile a variable containing a lambda do?
Date: Wed, 3 Jun 2009 11:28:07 +0200	[thread overview]
Message-ID: <e01d8a50906030228p2dc1c2ddvc0a800d570c767ce@mail.gmail.com> (raw)
In-Reply-To: <m2skih6701.fsf@igel.home>

On Wed, Jun 3, 2009 at 10:45 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> 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.

Yes, but in the first case in the doc string it byte compiles the
function definition "in place". In the second case I think it should
say that it returns the byte compiled function, or?




      reply	other threads:[~2009-06-03  9:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-03  2:00 What does byte-compile a variable containing a lambda do? Lennart Borgman
2009-06-03  8:45 ` Andreas Schwab
2009-06-03  9:28   ` Lennart Borgman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a50906030228p2dc1c2ddvc0a800d570c767ce@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.