xotcl::package object method import (public)
xotcl::package import [ -into into ] pkg
Defined in
- Switches:
- -into (optional, defaults to
"::"
)
- Parameters:
- pkg (required)
- Testcases:
-
No testcase defined.
Source code:
:require $pkg
namespace eval $into [subst -nocommands {
namespace import ${pkg}::*
}]
foreach e [$pkg export] {
set nq [namespace qualifiers $e]
if {$nq ne ""} {
namespace eval $into$nq [list namespace import ${pkg}::$e]
}
}
XQL Not present:Generic, PostgreSQL, Oracle
[
hide source ]
| [
make this the default ]