munificent / craftinginterpreters

Repository for the book "Crafting Interpreters"
http://www.craftinginterpreters.com/
Other
8.87k stars 1.04k forks source link

is there a little bug in function varDeclaration when defined a local variable #1131

Closed zhhqcoder closed 1 year ago

zhhqcoder commented 1 year ago

thank you very much, i learned a lot from your book. is there a little bug in function varDeclaration when defined a local variables? when we defined a local variable with var statement, we also compile a expression or push a nil val to the value stack, but we never pop it.