This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Referring variable from one module to an other
- To: kawa at sourceware dot cygnus dot com
- Subject: Referring variable from one module to an other
- From: Emmanuel Castro <castro at lirmm dot fr>
- Date: Sun, 01 Oct 2000 18:03:39 +0200
Consider the two files:
;; fileone.scm
(define alpha 'a)
;; end of fileone.scm
;; filetwo.scm
(require <fileone>) ;; NOTE: fileone.scm must have been compiled
previously !!!!
(define (x) (list alpha))
;; end of filetwo.scm
Compile them.
Then, start kawa, and type: (require <filetwo>)
java.lang.VerifyError: (class: filetwo, method: x signature:
()Lgnu/kawa/util/Pair;) Incompatible type for getting or setting field
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at gnu.bytecode.Type.getType(Type.java:62)
at gnu.expr.Interpreter.string2Type(Interpreter.java:162)
at kawa.standard.Scheme.string2Type(Scheme.java:867)
at kawa.standard.require.scanForDefinitions(require.java:95)
at kawa.lang.Translator.scan_form(Translator.java:396)
at kawa.lang.Translator.scan_body(Translator.java:428)
at kawa.standard.Scheme.makeModuleExp(Scheme.java:773)
at kawa.Shell.run(Shell.java:72)
at kawa.Shell.run(Shell.java:35)
at kawa.repl.apply0(repl.java:27)
at gnu.mapping.Future.run(Future.java:59)
I am not sure, but I think there is a problem in the run() of
filetwo.class.