From 1b2560f5a42f2353704ff1432a5fb2c69144e28b Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Mon, 29 Jun 2015 21:07:28 -0400 Subject: [PATCH] More notes regarding varargs --- TODO | 5 +++-- test2.scm | 16 +++++++++------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/TODO b/TODO index f34af2fe..6fc58a43 100644 --- a/TODO +++ b/TODO @@ -12,8 +12,9 @@ Working TODO list: - Constructs require for self-hosting - - support for pure varargs functions - see test2.scm, this is not quite implemented in the compiler + - support for application of pure varargs functions, EG: + ((lambda test (write test)) 1 2 3 4) + don't think this is needed for self-hosting though, so it can wait - eval there is no concept of macro expansion, probably other deficiencies as well diff --git a/test2.scm b/test2.scm index 8b7827bb..71fe1dfc 100644 --- a/test2.scm +++ b/test2.scm @@ -11,10 +11,12 @@ (write (when (lambda () #t) 'true)) (write (when (lambda () #f) 'false)) -; 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)) +;; 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))