Contents - Index


$Private

 

Library files can contain EES Functions, Procedures, Modules and/or Subprograms.  These library files can be loaded manually with the Load Library command and the $Include directive, or automatically by placing the library file in the USERLIB folder.  

 

The name of each Function, Procedure, Module, and Subprogram in the loaded library files can normally be seen with the Function Information dialog by selecting the EES library routines radio button.  Help information, if available, can be accessed for the routine and the EES code can be viewed.  However, in some cases, you do not want a routine to be displayed in the Function Information listing.  It may be intended for private use or to only support other routines or perhaps you just don't want others to view the code.  Including the $Private directive will remove the routine from the Function Info display. 

 

For example, if the following two functions were saved in a .lib file and saved in the USERLIB folder, only the SSQ function would be seen from the Function Info dialog.

 

Function MyFunc(X,Y)

$Private

   MyFunc:=sqrt(X^2+Y^2)

end

 

Function SSQ(X,Y)

{$SSQ

SSQ returns the square root of the sum of the squares of its two arguments}

   g=MyFunc(X,Y)

   SSQ:=g

end

 

 

 

Directives