implements (String_Type name);
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.
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.
|