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/implements.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 implements Context: slangrtl

Synopsis

Name a private namespace

Syntax

implements (String_Type name);

Description

The implements function may be used to name the private namespace associated with the current compilation unit. Doing so will enable access to the members of the namespace from outside the unit. The name of the global namespace is Global.

Example

Suppose that some file t.sl contains:

     implements ("Ts_Private");
     static define message (x)
     {
        Global->vmessage ("Ts_Private message: %s", x);
     }
     message ("hello");

will produce "Ts_Private message: hello". This message function may be accessed from outside via:

    Ts_Private->message ("hi");

Since message is an intrinsic function, it is global and may not be redefined in the global namespace.

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.