[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how far does eval go when module gets compiled?
From: |
Ludovic Courtès |
Subject: |
Re: how far does eval go when module gets compiled? |
Date: |
Tue, 12 Jan 2016 20:52:09 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
address@hidden (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'.