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]

Referring variable from one module to an other


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.



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