cyclone/test2.scm
Justin Ethier 6e1e4b56be Allow primitives to take a continuation argument
Also stubbed out the command-line-args function as such.
2015-06-30 21:44:23 -04:00

24 lines
509 B
Scheme

(import (scheme base)
(scheme file)
(scheme write))
(let loop ((i 10))
(if (zero? i)
(write 'done)
(loop (- i 1))))
(write (command-line-arguments))
(write (when (lambda () #t) 'true))
(write (when (lambda () #f) 'false))
;; Need to fix this up at some point:
;;
;; Lambda application is broken with pure varargs
;; TODO: once this works, add it to test suite!!!
;((lambda test (write test)) 1 2 3 4)
;
;;; This is OK
;;(define test (lambda args args))
;;(write (test 1 2 3 4))