Is 'namespace export ... ' necessary, in order to use the variable/procs of that namespace in a different namespace using the 'namespace import *' command. Should we really do the 'export' in the source namespace and 'import'in the destination namespace.
All namespace export
does is make commands available for namespace import
and prompts them to appear in a simple-mode namespace ensemble
(though you've got other options for that). If you don't want to support namespace import
, you don't have to; just never export anything.
You invoke commands in another namespace using the fully-qualified syntax:
::the::other::namespace::command "some argument, as normal"
You can also use partial namespace names; that's pretty common as a leading ::
is a bit ugly...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With