Hi,
Is there any way to "clear" work space in Lua similar to the clear
command in Matlab ?
Thanks !!
Hi,
Is there any way to "clear" work space in Lua similar to the clear
command in Matlab ?
Thanks !!
Is there any way to "clear" work space in Lua similar to the
clear
command in Matlab ?
There's not a built-in function to do that. Offhand, I think the simplest thing to do would be to run through the global environment, setting everything to nil
. You'd have to be careful not to nuke any standard libraries you still want to have available, though--library functions are stored in global tables.
Ok , thanks !!
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.