This is the mail archive of the
kawa@sourceware.cygnus.com
mailing list for the Kawa project.
Possible bug with compilation/stdout?
- To: Kawa Mailing List <kawa at sourceware dot cygnus dot com>
- Subject: Possible bug with compilation/stdout?
- From: balaban ittai <ittaib at cs dot bgu dot ac dot il>
- Date: Tue, 11 Apr 2000 02:56:01 +0200 (IST)
Some strange behavior: I have this module:
;; -----------------------------------------
(require <gnu.kawa.slib.printf>)
(define (the-main-method) (printf "Main stuff!! %a\n" 'hey))
(the-main-method)
;; ------------------------------------------------
Which I compile with the --main option, to file SchemeTest.class.
Now, "require"ing this from within the interpreter produces the expected
printout. When I run it using "java SchemeTest" I get nothing(!).
When I call theMainMethod (which is the mangled name):
(new SchemeTest()).theMainMethod();
I get a NullPointerException. The same thing happens with (format #t ...),
so I assume it's some problem with standard output.
Any comments?
Ittai