This is the mail archive of the kawa@sourceware.cygnus.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]

Possible bug with compilation/stdout?


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



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