This is the mail archive of the
kawa@sourceware.cygnus.com
mailing list for the Kawa project.
Re: Possible bug with compilation/stdout?
- To: balaban ittai <ittaib at cs dot bgu dot ac dot il>
- Subject: Re: Possible bug with compilation/stdout?
- From: Per Bothner <per at bothner dot com>
- Date: 10 Apr 2000 18:52:55 -0700
- Cc: Kawa Mailing List <kawa at sourceware dot cygnus dot com>
- References: <Pine.SGI.3.95-heb-2.07.1000411024453.131896A-100000@claret>
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/