tiagolr / dconsole

Haxe game-like console that provides runtime acess to methods, variables and more.
MIT License
169 stars 16 forks source link

fix hscript 2.0.4 compatibility #50

Closed tiagolr closed 9 years ago

tiagolr commented 9 years ago

with hscript 2.0.4 the hscript state is being reset again everytime an expression is evaluated.

Type1J commented 9 years ago

This problem could be solved by reverting to exprReturn().

Although there was a change in hscript to fix the internal state not being initialized, I'd still say that execute() should be called at least once (probably right after creating the interpreter) to initialize the state explicitly.

tiagolr commented 9 years ago

Yes, thanks @Type1J , it has been fixed already (needed a few new tricks after reverting to exprReturn), its working fine, also added an explicit dependency to hscript 2.0.4 before a new version breaks it again.