epatrizio / ola

OCaml Lua Interpreter
The Unlicense
1 stars 1 forks source link

global and local var assign #6

Closed epatrizio closed 1 year ago

epatrizio commented 1 year ago

Warning : scope analysis implementation

epatrizio commented 1 year ago

ALERT : bug https://github.com/epatrizio/ola/pull/6/commits/03c5aa19a81a0a0a8cfcf959fc0d2e9f0b073ed2 with global var in a block (local) context (see example assign.lua : c = 1 in first block)

epatrizio commented 1 year ago

Bug fix : https://github.com/epatrizio/ola/pull/6/commits/73f7c74872f9742cd84b5317630653aad7592913 need to separate locals and globals