clear all variables in the here namespaceis there any way to delete the here namespace? Or more to the point, all the variables in it without knowing the variable names?
namespace("here") << Delete
doesn't seem to work. I could << Get contents and for through it, but I'm just wondering if there's a better way.
Re: clear all variables in the here namespaceDoes this work:
namespace("here")<
At least you don't have to for through it.
Re: clear all variables in the here namespacenah, I want only the here namespace to be deleted (even more than cleared really)
::y = 14;
Names Default To Here( 1 );
x=44;
show(here:x);
show(::y);
delete symbols();
show(::y);
Re: clear all variables in the here namespaceSee if this will do what you want:
Names Default To Here( 1 );
x=44;
show(here:x);
clear symbols();
show(here:x);