This commit is contained in:
Justin Ethier 2015-03-02 18:06:03 -05:00
parent 4e6096d64b
commit 6fdbf13cbe

View file

@ -10,6 +10,8 @@
;; Demonstrate sending an interpreted function to compiled code
;; I think in order for this to work, the compiled code would have to
;; detect an interpreted proc, and use eval to execute it
;(eval '(call (lambda (x) x) (display (+ 1 1))))
;; TODO: to debug this, may try placing printfs in runtime's apply
(eval '(call (lambda (x) x) (display (+ 1 1))))
;(eval '(call write 1))
(eval '(call mywrite 1))
;(eval '(call mywrite 1))