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

Re: defmacro: Null pointer exceptions with compiled files


Chris Dean wrote:

... I have put macros in individual files and compiled them as a
separate compilations. The macros do not work if I load the compiled
files instead of the .scm files.


Try using require instead.  load will not use the separate compilation
unit that you want.  Write if you want a more detailed example.

True, I do recommend "Files compilation" [as the Kawa manual calls it] and (require <module>), rather than "Archive compilation" and (load "file"), as the former will integrate better with Java, and provide better namespace management, and better optimization.


However, I do want "Files compilation" to work more-or-less transparently like other Lisp/Scheme systems that support compilation. As far I can tell, your test case *should* work.

Unfortunately, I have don't have time to debug this now. Could you enter it into the Kawa bugzilla, so we don't forget about it?
--
--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]