this post was submitted on 19 Oct 2023
1 points (100.0% liked)

Lisp

53 readers
3 users here now

founded 1 year ago
MODERATORS
 

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 are viewing a single comment's thread
view the rest of the comments
[–] Ok_Specific_7749@alien.top 1 points 1 year ago

I found an interesting abcl function:

(add-to-classpath "some.jar")