Is there any robust mechanism for getting all variables that are declared using the "variable" keyword under a given namespace?
For example, consider the following code:
namespace eval MyNamespace {
variable showThisVar1
set dontShowThisVar1 1
proc MyProc { } {
variable showThisVar2
set dontShowThisVar2 1
}
}
I am looking for a robust way to get showThisVar1 and showThisVar2, which have been declared as variables in the namespace MyNamespace. The result of the query should not return dontShowThisVar1 and dontShowThisVar2.