Ratstail91 / Toy

The Toy Programming Language.
https://toylang.com/
zlib License
231 stars 11 forks source link

Function exits without clean used stack #105

Closed hiperiondev closed 1 year ago

hiperiondev commented 1 year ago

In execFnDecl push scope in stack and, at the end of function, pop this. But, if an error occurs, it exits the function without returning the stack to its original state.

hiperiondev commented 1 year ago

is not the correct interpretation. Sorry

Ratstail91 commented 1 year ago

Actually, I've done something odd here - I want to fix it later, thanks for pointing it out.

TODO: use copyLiteral