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]

Re: Possible bug with compilation/stdout?


balaban ittai <ittaib@cs.bgu.ac.il> writes:

> (define (the-main-method) (printf "Main stuff!! %a\n" 'hey))

> 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):

Try adding (force-output):

(define (the-main-method) (printf "Main stuff!! %a\n" 'hey) (force-output))

> (new SchemeTest()).theMainMethod();

That is not meant to work.  I do intent to implement a "compile-static"
option where the Scheme procedures are compiled as static methods, and
initialization is handled in the class initialier.  In that case what
you did should work - but for now, not.
-- 
	--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]