From: ludo@gnu.org (Ludovic Courtès)
To: guile-user@gnu.org
Subject: Re: how far does eval go when module gets compiled?
Date: Tue, 12 Jan 2016 20:52:09 +0100 [thread overview]
Message-ID: <87ziwabmom.fsf@gnu.org> (raw)
In-Reply-To: 87vb6zut6m.fsf@T420.taylan
taylanbayirli@gmail.com (Taylan Ulrich "Bayırlı/Kammer") skribis:
> So the "(+ 3 4)" in your example is (theoretically) evaluated when some
> piece of code containing e.g. (use-modules (foo)) is executed, and the
> module was not already loaded into the running Guile process. (Although
> due to optimization, that "(+ 3 4)" will probably be turned into 7 at
> compile-time.)
Right:
--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> ,optimize (lambda (x) (+ 3 4))
$2 = (lambda (x) 7)
--8<---------------cut here---------------end--------------->8---
Ludo'.
prev parent reply other threads:[~2016-01-12 19:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-12 4:52 how far does eval go when module gets compiled? Matt Wette
2016-01-12 7:56 ` Taylan Ulrich Bayırlı/Kammer
2016-01-12 19:52 ` Ludovic Courtès [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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ziwabmom.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guile-user@gnu.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).