Possible bug with compilation/stdout?

balaban ittai ittaib@cs.bgu.ac.il
Mon Apr 10 17:56:00 GMT 2000


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




More information about the Kawa mailing list