jeandrek / do-it

Toy compiled language
GNU General Public License v3.0
2 stars 1 forks source link

Return doesn't pop any variables #9

Closed jeandrek closed 7 years ago

jeandrek commented 8 years ago

The return special form doesn't pop any variables of the stack. I can't just use (cleanup port), because if the return is in a block, it'll just destroy that block's variables.

jeandrek commented 8 years ago

Maybe I could remove return

jeandrek commented 7 years ago

I guess I could give every compile time stack frame (i.e. lexical context thingy) a tag that says if it's a normal block or procedure.