work transfer to laptop

This commit is contained in:
Felix Brendel
2019-09-19 09:20:26 +02:00
parent 5a117d94ee
commit 0c73728217
22 changed files with 3018 additions and 3090 deletions
+19
View File
@@ -18,3 +18,22 @@
;; should output 6
;; outputs 0
#+END_SRC
* TODO BUG 3: unnecessary copying?
define((test val),"") {
fetch(val) ;
printf("addr of arg: %lld\n", (unsigned long long)&val);
return Memory::nil;
};
then:
#+begin_src slime
(define a "a")
(test a) ;; will output an adress
(if 1 (test a) 2) ;; will output a different adress
#+end_src
* TODO BUG 4: arg parsing
#+begin_src slime
(define (range (:from 0) to) ...)
#+end_src
should error since we can't have positional args after keywords. right now, 'to' is silently
ignored..