Welcome to the CHICKEN Scheme pasting service

Plug-In Linkage, calling both ways added by murphy_tcc on Fri Dec 12 23:51:04 2014

;; compile.sh
#!/bin/sh
set -e

csc -O2 -d1 program-dummy.scm -j program
rm program-dummy

csc -O2 -d1 -unit gostak -s gostak.scm -J
csc -O2 -d1 program.scm

rm *.import.scm


;; program-dummy.scm (to resolve dependency cycle)
(module program
  *
  (import scheme)

(define make-dosh)

)


;; gostak.scm
(module gostak
  *
  (import chicken scheme program)

(define (distim)
  (print "distimming " (make-dosh) "..."))

)


;; program.scm (the real one)
(load-library 'gostak "./gostak.so")

(module program
  *
  (import chicken scheme gostak)

(define (make-dosh)
  "foo")

(define (main)
  (distim))

)

(import program)
(main)

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which R5RS procedure can be used to concatenate strings?
Visually impaired? Let me spell it for you (wav file) download WAV