Closed ilgooz closed 9 months ago
This is because gnovm sees it as a re-definition. For this same reason, we're changing the name of the repl-function each time. So we'd need /func to run the definition of the func in the VM only once...
Indeed, the current implementation lacks sophistication.
@mvertes, any suggestions to improve the flexibility and resilience of REPLs?
@ajnavarro is it still the case with your PR?
@moul It won't crash. I'm recovering VM's panics to avoid that in any case.
In that specific case, all evaluated expressions will work as intended.
@ilgooz insuggeft you to bump gno and try the latest REPL!
I believe this is fixed with #1044.
@ilgooz, if you encounter it again, feel free to re-open.
M2 Chip on 6d137df03c59a0d78fe0f1336bd3a60d6e4209d9
It fails when I run
println(1)
after testing the demo (without calling exit) presented in the Usage section.