mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-12 23:37:38 +02:00
More notes regarding varargs
This commit is contained in:
parent
96e777743c
commit
1b2560f5a4
2 changed files with 12 additions and 9 deletions
5
TODO
5
TODO
|
@ -12,8 +12,9 @@ Working TODO list:
|
||||||
|
|
||||||
- Constructs require for self-hosting
|
- Constructs require for self-hosting
|
||||||
|
|
||||||
- support for pure varargs functions
|
- support for application of pure varargs functions, EG:
|
||||||
see test2.scm, this is not quite implemented in the compiler
|
((lambda test (write test)) 1 2 3 4)
|
||||||
|
don't think this is needed for self-hosting though, so it can wait
|
||||||
|
|
||||||
- eval
|
- eval
|
||||||
there is no concept of macro expansion, probably other deficiencies as well
|
there is no concept of macro expansion, probably other deficiencies as well
|
||||||
|
|
16
test2.scm
16
test2.scm
|
@ -11,10 +11,12 @@
|
||||||
(write (when (lambda () #t) 'true))
|
(write (when (lambda () #t) 'true))
|
||||||
(write (when (lambda () #f) 'false))
|
(write (when (lambda () #f) 'false))
|
||||||
|
|
||||||
; Lambda application is broken with pure varargs
|
;; Need to fix this up at some point:
|
||||||
; TODO: once this works, add it to test suite!!!
|
;;
|
||||||
((lambda test (write test)) 1 2 3 4)
|
;; Lambda application is broken with pure varargs
|
||||||
|
;; TODO: once this works, add it to test suite!!!
|
||||||
;; This is OK
|
;((lambda test (write test)) 1 2 3 4)
|
||||||
;(define test (lambda args args))
|
;
|
||||||
;(write (test 1 2 3 4))
|
;;; This is OK
|
||||||
|
;;(define test (lambda args args))
|
||||||
|
;;(write (test 1 2 3 4))
|
||||||
|
|
Loading…
Add table
Reference in a new issue