xotcl::package object method import (public)

 xotcl::package[i] 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 {
  #puts stderr "*** package import ${pkg}::* into [namespace current]"
  namespace import ${pkg}::*
}]
# import subclasses if any
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 ]
Show another procedure: