I am running all scripts on one eggdrop bot. Is it okay for me to use the same variable name if they are in different scripts? For instance, if I have this line in one script:
caesar wrote:My guess is that the difference is that in the second the respond proc is inside the MyScript namespace.
Both of them are inside the MyScript namespace (I'm looking at another script that uses the double colons before the MyScript bind). What's interesting is, this script I'm looking at uses global. Here is the script:
I think that the utility of the lead :: is essentialy when you use the import/export.
And it might be a little bit faster for the tcl to use the full path (::namespace::procedure) than looking in the namespace for the existence of a sub-namespace and then looking in global.