This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Command line arguments in compiled files?
- From: Jocelyn Paine <popx at ifs dot org dot uk>
- To: kawa at sources dot redhat dot com
- Date: Mon, 11 Nov 2002 19:49:42 +0000 (GMT)
- Subject: Re: Command line arguments in compiled files?
Oops, I should have realised it was something like that.
Works fine with (module-static #f).
Jocelyn Paine
http://www.ifs.org.uk/~popx/
+44 (0)7768 534 091
On Mon, 11 Nov 2002, Per Bothner wrote:
> Jocelyn Paine wrote:
>
> > Just tried compiling this, using the --main flag:
> > (module-name 'Main)
> > (module-static #t)
> > (format #t "~A~%" command-line-arguments)
>
> --main and --module-static are fundamentally incompatible,
> at least as currently implemented/defined. Module-static
> means that all the function *including* the main module
> body are compiled to static code. More-over, the
> main module body is part of <clinit>, the static initializer
> code for the class. This is of course before --main
> gets called.
>
> It might make sense to redefined module-static with --main
> to mean all functions, but not the top-level body. However,
> it would mean re-doing various things, so it's not completely
> trivial.
> --
> --Per Bothner
> per@bothner.com http://www.bothner.com/per/
>
>