unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Making the -e option compatible with new versions of Guile 1.4
@ 2005-01-14 16:33 Marius Vollmer
  2005-01-14 23:39 ` Neil Jerram
  0 siblings, 1 reply; 6+ messages in thread
From: Marius Vollmer @ 2005-01-14 16:33 UTC (permalink / 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


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

end of thread, other threads:[~2005-01-17 22:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-14 16:33 Making the -e option compatible with new versions of Guile 1.4 Marius Vollmer
2005-01-14 23:39 ` 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

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