MAINSAIL Language Manual, Section 49.10

previous   next   top   contents   index   framed top   this page unframed


49.10. $useProgramInterface

Figure 49–9. $useProgramInterface
BOOLEAN
<
macro>     $useProgramInterface;

$useProgramInterface is TRUE if and only if the INITIAL PROCEDURE of the current MODULE m is being invoked for one of the following reasons:

Because of the way it is implemented, $useProgramInterface must be used only in the INITIAL PROCEDURE of the MODULE, before it makes any PROCEDURE calls; otherwise, the use of $useProgramInterface is undefined.

Normal uses of bind and new within the MAINSAIL runtime system do not set the $programInterface bit. For example, when a MODULE is invoked from MAINEX, the bit is not set, so that $useProgramInterface is FALSE if queried by the MODULE's INITIAL PROCEDURE.


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 49.10