dido / arcueid

A C interpreter for Paul Graham's Arc dialect of Lisp
Other
27 stars 2 forks source link

maptable does weird things #24

Closed dido closed 12 years ago

dido commented 12 years ago

Reference Arc:

arc> (let x nil (maptable (fn args (= x (cons args x))) tbl) x) ((b 2) (a 1))

Arcueid:

arc> (let x nil (maptable (fn args (= x (cons args x))) tbl) x) ((b 2 #<procedure: (anonymous)> #hash((a . 1) (b . 2) )) (a 1))

Why is extra garbage getting into the args?

dido commented 12 years ago

related to the stack not clearing after continuations for CC4 functions (like arc_maptable)