Welcome to the CHICKEN Scheme pasting service

srfi-18 switching test pasted by rivo on Sat Mar 30 11:32:29 2013

(use srfi-18)

(define (a)
	(print "A:" (current-seconds))
	(a))

(define (b)
	(print "B:" (current-seconds))
	(b))

(thread-start! (make-thread b "B"))

(a)

thread with ~30 fps main loop added by rivo on Sat Mar 30 11:34:13 2013

(use srfi-18)

#>
static double clock_d()
{
	return clock() / (double)CLOCKS_PER_SEC;
}
static void draw()
{
	double t = clock_d();
	int i;
	while ((clock_d() - t) < .033)
		i++;
}
<#
(define draw (foreign-lambda void "draw"))

(use srfi-18)

(define (a)
	(draw)
	(print "A:" (current-seconds))
	(a))

(define (b)
	(print "B:" (current-seconds))
	(b))

(thread-start! (make-thread b "B"))

(a)

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What does `(string? "foo")' produce?
Visually impaired? Let me spell it for you (wav file) download WAV