This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Command line arguments in compiled files?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]