About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/import.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 import Context: slangrtl

Synopsis

Dynamically link to a specified module

Syntax

import (String_Type module [, String_Type namespace])

Description

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.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.