Welcome to the CHICKEN Scheme pasting service

loader environment example added by retroj on Mon Dec 8 00:22:25 2014

;;;;;; the-main-program.scm


(module the-main-program
    *

(import chicken scheme)

(use extras)

(define (foo)
  (print "Hello, World!"))

(load "a-user-script.scm")

)



;;;;;;; a-user-script.scm


(module a-user-script
    *

(import chicken scheme)

(import the-main-program)

(foo)

)




;;;;;;; build process
$ csc -check-syntax -J the-main-program.scm
$ csc the-main-program.scm -prologue the-main-program.import.scm
$ ./the-main-program
Hello, World!

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which R5RS procedure returns `'(2 3)' when given `'(1 2 3)' as input?
Visually impaired? Let me spell it for you (wav file) download WAV