next up previous contents
Next: 3.2.4.1 The return Statement Up: 3.2 MDL Classes Previous: 3.2.3 Static Parameters


3.2.4 Methods

The definition of a new method of an MDL class starts with the name of the method followed by a list of MDL expressions enclosed in braces.

methodname {
   expression_list
}

There are two reserved names for methods which are used for the construction and destruction of MDL class instances by the MDL interpreter:

By convention the main algorithm of the MDL class should be coded into the evaluate method. Optional initializations which require interface parameters to be forwarded to or returned by the MDL class instance are subject to the initialize method.

An MDL method with the name methodname is execute by stating the following MDL expression within any method definition belonging to that class:

call methodname ;




next up previous contents
Next: 3.2.4.1 The return Statement Up: 3.2 MDL Classes Previous: 3.2.3 Static Parameters
Robert Mlekus
1999-11-14