The following is a kawa scheme program consisting of 3 files
Mytest.scm
(module-name MyTest)
(module-compile-options main: #t)
(define (printc)
(display "c"))
(require 'srfi-1) ;; List Library
(define (main)
(import MyTestA)
(printa)
(MyTestB:printb)
(printc))
(main)
MyTestA.scm
(module-name MyTestA)
(module-export printa)
(define (printa)
(display "A"))
MyTestB.scm
(module-name MyTestB)
(module-export printb)
(define (printb)
(display "B"))
To compile & run,
rm -vf ./*.class
kawa -Dkawa.import.path="." -C ./MyTestA.scm
kawa -Dkawa.import.path="." -C ./MyTestB.scm
kawa -Dkawa.import.path="." --main -C ./MyTest.scm
kawa MyTest
How do i do the same thing in abcl lisp ?
You must log in or register to comment.
If you’re asking how to make a package consisting of multiple files in Common Lisp, try this for a start: https://lispcookbook.github.io/cl-cookbook/systems.html
It seems you are asking about kawa scheme not abcl common lisp.
No it works with kawa scheme like i specified.
I found an interesting abcl function:
(add-to-classpath "some.jar")