gilda Procedure [ROOT] generic Procedure
Procedures written in the Gilda language are included in Class using declarations in the body of a Class file. Procedure files are in the same directory as the Class file. The name of a non-generic procedure file has the same name as the procedure with ".g" suffix. The name of a generic procedure file uses a ".gg" suffix. Neither the procedure name and their corresponding file names are not case sensitive.
When building a program the Root keyword on a procedure declaration designates the procedure where the program starts running. If more than one procedure included in a build has a Root designation then the first declaration encountered will be used. Subsequent procedures will still be included in the build. The Root keyword can only be used on a non-generic Gilda method procedure.
Program command arguments are passed into the Root procedure so it will have a standard signature. The Program.Argument class in the Basis library has procedures to process program command line parameters. The New.Gilda utility will generate code from the preamble of the Root procedure's source file to convert program arguments into variables for you.
With generic procedures the generic parameters are declared on the Class declaration of the Class that is belongs to. Arguments that set the generic parameters are given on the Import declaration used to import the Class into the build. The generic Class file and the the generic procedure files all must reside in the same directory.
When a member method is designated using a qualifier it is created with the qualified name even if the qualifier is in a different library. This is useful for overriding methods in a library with a local version.
gilda Gilda_Run``First_Handler :Override runtime error message handler.