unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Marius Vollmer <marius.vollmer@uni-dortmund.de>
Subject: Making the -e option compatible with new versions of Guile 1.4
Date: Fri, 14 Jan 2005 17:33:21 +0100	[thread overview]
Message-ID: <ljr7koug1a.fsf@troy.dt.e-technik.uni-dortmund.de> (raw)

Hi,

For 1.7, I have made Guile's interpretation of the -e option
compatible with the behavior of ttn's Guile 1.4 series.  When this
works out, I want to also install this in the 1.6 series.

What do you all think?

Here is the new documentation of -e:

`-e FUNCTION'
     Make FUNCTION the "entry point" of the script.  After loading the
     script file (with `-s') or evaluating the expression (with `-c'),
     apply FUNCTION to a list containing the program name and the
     command-line arguments -- the list provided by the `command-line'
     function.

     A `-e' switch can appear anywhere in the argument list, but Guile
     always invokes the FUNCTION as the _last_ action it performs.
     This is weird, but because of the way script invocation works under
     POSIX, the `-s' option must always come last in the list.

     The FUNCTION is most often a simple symbol that names a function
     that is defined in the script.  It can also be of the form `(@
     MODULE-NAME SYMBOL)' and in that case, the symbol is looked up in
     the module named MODULE-NAME.

     For compatibility with some versions of Guile 1.4, you can also
     use the form `(symbol ...)' (that is, a list of only symbols),
     which is equivalent to `(@ (symbol ...) main)', or `(symbol ...)
     symbol' (that is, a list of only symbols followed by a symbol),
     which is equivalent to `(@ (symbol ...) symbol)'.  We recommend to
     use the equivalent forms directly since they corresponf to the `(@
     ...)' read syntax that can be used in normal code, *Note Using
     Guile Modules::.

     *Note Scripting Examples::.


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


             reply	other threads:[~2005-01-14 16:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-14 16:33 Marius Vollmer [this message]
2005-01-14 23:39 ` Making the -e option compatible with new versions of Guile 1.4 Neil Jerram
2005-01-17 17:10   ` Marius Vollmer
2005-01-17 19:32     ` Neil Jerram
2005-01-17 19:43       ` Marius Vollmer
2005-01-17 22:28         ` Neil Jerram

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=ljr7koug1a.fsf@troy.dt.e-technik.uni-dortmund.de \
    --to=marius.vollmer@uni-dortmund.de \
    /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).