From: Catonano <catonano@gmail.com>
To: help-guix@gnu.org
Subject: some code
Date: Mon, 6 Jun 2016 17:05:06 +0200 [thread overview]
Message-ID: <CAJ98PDyZ5Q5ObKnLR_Ly2sJuO4gcxXyOb0BKSK3=M49fWRuxJw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 927 bytes --]
There's a piece of code (in the Emacs build system) I don't understand
In "guix/build-system/emacs.scm" on line 97 there's a call to a function
called "emacs-build"
Such call is inside the body of "emacs-build" itself. As it is common in
scheme, a function is calling itself (recursively)
Now, I read the SICP and the discussion about functions implementing
processes that can be iterative or recursive (in both cases the function
calls itself)
But I don't understand what is going on here
Why is "emacs-build" calling itself ? Is this an iterative or recursive
process ?
And what value is this calculating ?
I see that the result of this calculation (" (define builder..." ) is
passed as an argument to "build-expression->derivation" a few lines below
But I don't get what build-expression->derivation is receiving really.
Also what's with that "define*" ? Is there a manual page describing it ? I
couldn't find it
[-- Attachment #2: Type: text/html, Size: 1275 bytes --]
next reply other threads:[~2016-06-06 15:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-06 15:05 Catonano [this message]
2016-06-06 16:23 ` some code Thompson, David
2016-06-07 17:56 ` Catonano
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://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ98PDyZ5Q5ObKnLR_Ly2sJuO4gcxXyOb0BKSK3=M49fWRuxJw@mail.gmail.com' \
--to=catonano@gmail.com \
--cc=help-guix@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).