mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 04:25:06 +02:00
Cleanup
This commit is contained in:
parent
178c5f622f
commit
3901c32a7b
2 changed files with 9 additions and 9 deletions
2
TODO
2
TODO
|
@ -1,7 +1,5 @@
|
||||||
Working TODO list:
|
Working TODO list:
|
||||||
|
|
||||||
- need to cleanup ex handler output in icyc.scm
|
|
||||||
|
|
||||||
- Fixup Cyc_sum to use varargs and call (error) if anything bad happens. then generalize to - * /
|
- Fixup Cyc_sum to use varargs and call (error) if anything bad happens. then generalize to - * /
|
||||||
- need an error() function that will call (error) from the C runtime
|
- need an error() function that will call (error) from the C runtime
|
||||||
useful for, EG, type checking
|
useful for, EG, type checking
|
||||||
|
|
16
icyc.scm
16
icyc.scm
|
@ -15,13 +15,15 @@
|
||||||
(with-exception-handler
|
(with-exception-handler
|
||||||
(lambda (obj)
|
(lambda (obj)
|
||||||
(display "Error: ")
|
(display "Error: ")
|
||||||
(display obj)
|
(cond
|
||||||
; TODO: if list, do this instead:
|
((pair? obj)
|
||||||
;(for-each
|
(for-each
|
||||||
; (lambda (o)
|
(lambda (o)
|
||||||
; (display o)
|
(display o)
|
||||||
; (display " "))
|
(display " "))
|
||||||
; obj)
|
obj))
|
||||||
|
(else
|
||||||
|
(display obj)))
|
||||||
(display "\n")
|
(display "\n")
|
||||||
(k #t))
|
(k #t))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
|
Loading…
Add table
Reference in a new issue