Welcome to the CHICKEN Scheme pasting service

Plugin loading added by CaptainRant on Sat Dec 13 00:00:21 2014

;; BUILD SCRIPT START.
#!/bin/bash

# Build main module.
csc -O3 -J -c main.scm -o main.o
csc -O3 main.o -o main
rm main.o

# Build plugin.
csc -O3 -dynamic foo.scm -o foo.so

# Run it.
./main

# Remove import file, and run again.
rm main.import.scm
./main
;; BUILD SCRIPT END.

; foo.scm start.
(declare (unit foo))

(module foo ()
  (import main)

  (greet "test"))
; foo.scm end.

; main.scm start.
(module main (greet)
  (import chicken scheme)

  (define (greet name)
    (print "Hello " name))

  (load-library 'foo "./foo.so"))
; main.scm end.

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
`call/cc' is a short name for which procedure?
Visually impaired? Let me spell it for you (wav file) download WAV