Reputation: 1
So I opened lua in my windows cmd. It is in interacive mode by default. I assigned some variables, created some functions. Now I want to flush it and start over. Do I need to quit with ctrl+Z and open it again or there is a command for it?
Upvotes: 0
Views: 172
Reputation: 48572
You need to quit and open it again. The Lua standalone interpreter does not contain any feature that would allow you to reset its state. You can look through the standalone interpreter's source code at https://www.lua.org/source/5.4/lua.c.html to verify this.
Upvotes: 0