bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #34859] (require ...) behaves differently between repl a


From: Per Bothner
Subject: [Bug-kawa] [bug #34859] (require ...) behaves differently between repl and direct invocation
Date: Mon, 28 Nov 2011 04:25:17 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.41 Safari/535.7

Update of bug #34859 (project kawa):

                  Status:            Works For Me => Invalid                

    _______________________________________________________

Follow-up Comment #5:

"it looks ... as if the ant task and kawa -C may be not identical processes."

The difference is the --main flag, which is enabled because the Ant task says
main="true".

And setting main makes hello and goodbye non-exported:

See http://www.gnu.org/software/kawa/Compiling.html#Application-compilation :
  "If there is no explicit module-export in a module compiled with --main then
no names are exported. (The default otherwise is for all names to be
exported.)"

So the fix is to either edit the kawac task to say main="false" or to add:
(module-export hello goodbye)
to messages.scm.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34859>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]