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

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.

Andreas.

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




  reply	other threads:[~2009-06-03  8:45 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 [this message]
2009-06-03  9:28   ` Lennart Borgman

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=m2skih6701.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /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.