Re: patch: executable modules support with "guile -e ENTRYPOINT"

Marius Vollmer <[email protected]>
Newsgroups gmane.lisp.guile.user,gmane.lisp.guile.sources
Message-ID <[email protected]>
Thien-Thi Nguyen <[email protected]> writes:

> the patch to libguile/script.c below extends the guile interpreter's
> handling of "-e ENTRYPOINT" to support "executable modules".  before,
> ENTRYPOINT named a procedure only.  now, you can additionally specify:
>
> 	-e "(some module)"		-- proc assumed to be "main"
> 	-e "(some module) some-proc"

I think that's a very good idea.  Indeed, I think it is so good that
we should not reserve it for the -e option and should instead find a
general syntax for writing non-local names.  Your proposed syntax
"MODULE-NAME PROC-NAME" does not work in Scheme code, but what about

  (:: MODULE-NAME BINDING-NAME)

i.e.

  (:: (my module) start)

or maybe

  (:: my module start)

if that is unambiguous enough.  Or maybe with ':' instead of '::'.
What do other Schemes do?

Such a syntax could be used both in Scheme code itself and with the -e
option.

Implementing this needs a bit more thought, but should be doable.  We
need something like this anyway for a correct integration of
syntax-case with the module system.

So what do people say?

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405


_______________________________________________
Guile-user mailing list
[email protected]
http://mail.gnu.org/mailman/listinfo/guile-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.