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: Mutual require bug when compiling?


On 08/06/2009 06:30 PM, alex mitchell wrote:
Following up on the earlier duplicate require problems that we were
encountering, we¹ve come across what seems to be a problem with mutual
requires when compiling, which may be related.

I just checked in a patch which might help.


A 'require' at run-time becomes a "find the class"
followed by "run its body".  In the case of a cycle
we would end up doing these (i.e. run the body of the
imported module) at the end of the (importing) module.
Which means some initialization didn't happen until too late.

The patch I just checked in makes sure the "run" happens
in teh same place as the "require", so things should be
more as expected.
--
	--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]