unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* some code
@ 2016-06-06 15:05 Catonano
  2016-06-06 16:23 ` Thompson, David
  0 siblings, 1 reply; 3+ messages in thread
From: Catonano @ 2016-06-06 15:05 UTC (permalink / raw)
  To: help-guix

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-07 17:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-06 15:05 some code Catonano
2016-06-06 16:23 ` Thompson, David
2016-06-07 17:56   ` Catonano

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).