This is the mail archive of the kawa@sourceware.org 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]
Other format: [Raw text]

Re: problem requiring variables in applet


On 12/26/2010 11:50 PM, teong leong chuah wrote:
Hi

I found a buggy behavior when compiling using the --applet flag

...

the applet runs but when i have to access require-var which is a
variable required from another file (require-var.scm) it gives a null
pointer

Yes, it's a bug. The problem is that the code generated for the (require "require-var.scm") ends up in a method that doesn't get called, and so the class require$Mnvar doesn't get initialized.

The easiest work-around is probably to add:

(module-static 'init-run)

to require-var.scm.  That seems to work.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


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