work transfer to laptop
This commit is contained in:
@@ -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..
|
||||
|
||||
Reference in New Issue
Block a user