Welcome to the CHICKEN Scheme pasting service

name shadow added by alicemaz on Tue Jul 21 09:27:12 2020

alice@bellona:~/work/misc/modular % tree
.
├── dep
│   ├── dep.egg
│   └── dep.scm
└── main.scm

1 directory, 3 files
alice@bellona:~/work/misc/modular % find . -type f -print0 | xargs -0 tail -n 1000
==> ./dep/dep.scm <==
(module internal *

(import scheme)
(import chicken.base)

(define x 1)

)

(module dep ()

(import chicken.module)
(reexport (prefix internal dep:))

)

==> ./dep/dep.egg <==
((synopsis "dep")
 (author "alice")
 (category data)
 (license "BSD")
 (components (extension dep)))

==> ./main.scm <==
(module internal *

(import scheme)
(import chicken.base)

(define x 2)

)

(module main ()

(import scheme)
(import chicken.base)
(import chicken.format)
(import dep)
(import internal)

(printf "dep:x = ~S\nx = ~S\n" dep:x x)

)
alice@bellona:~/work/misc/modular % cd dep/
alice@bellona:~/work/misc/modular/dep % chicken-install -s
building dep
   /usr/bin/csc -host -D compiling-extension -J -s -regenerate-import-libraries -setup-mode -I /home/alice/work/misc/modular/dep -C -I/home/alice/work/misc/modular/dep -O2 -d1 dep.scm -o /home/alice/work/misc/modular/dep/dep.so
   /usr/bin/csc -regenerate-import-libraries -M -setup-mode -static -I /home/alice/work/misc/modular/dep -emit-link-file /home/alice/work/misc/modular/dep/dep.link -host -D compiling-extension -c -unit dep -D compiling-static-extension -C -I/home/alice/work/misc/modular/dep -O2 -d1 dep.scm -o /home/alice/work/misc/modular/dep/dep.static.o
   /usr/bin/csc -setup-mode -s -host -I /home/alice/work/misc/modular/dep -C -I/home/alice/work/misc/modular/dep -O2 -d0 dep.import.scm -o /home/alice/work/misc/modular/dep/dep.import.so
  installing dep
alice@bellona:~/work/misc/modular/dep % cd ..
alice@bellona:~/work/misc/modular % csc main.scm
alice@bellona:~/work/misc/modular % ./main 
dep:x = 1
x = 1

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the procedure to access a character in a string by index in R5RS?
Visually impaired? Let me spell it for you (wav file) download WAV