Dynamically link to a specified module
import (String_Type module [, String_Type namespace])
The import function causes the run-time linker to dynamically
link to the shared object specified by the module parameter.
It seaches for the shared object as follows: First a search is
performed along all module paths specified by the application. Then
a search is made along the paths defined via the
set_import_module_path function. If not found, a search is
performed along the paths given by the SLANG_MODULE_PATH
environment variable. Finally, a system dependent search is
performed (e.g., using the LD_LIBRARY_PATH environment
variable).
The optional second parameter may be used to specify a namespace
for the intrinsic functions and variables of the module. If this
parameter is not present, the intrinsic objects will be placed into
the global namespace.
This function signals an error if the specified module is not found.
The import function is not available on all systems.
- slangrtl
-
_get_namespaces,
autoload,
byte_compile_file,
current_namespace,
eval,
evalfile,
get_import_module_path,
getenv,
implements,
putenv,
require,
set_import_module_path,
set_slang_load_path,
uname,
use_namespace
|