Programming and Connectivity - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Information : Updates : Maple 11 : Programming and Connectivity

Programming Facilities Changes in Maple 11

  

Maple 11 includes the following changes to programming facilities.

 

Parameter Declarations and Argument Processing

External Interface

Parameter Declarations and Argument Processing

  

The enhanced parameter declaration and argument processing facilities first introduced in Maple 10 have been enhanced further. Improvements include the following:

• 

You can declare optional parameters to raise an exception if the next argument does not match the declared type. If the next argument is missing, that is, there are no more arguments, then the default values are applied and no warning is issued.  For more information, see parameter_classes.

• 

Keyword parameters can specify alternative spellings of the keyword, such as color and colour, or have indexed names such as axis1, axis2, and so on. At procedure invocation time, keyword parameters are matched to arguments before positional and ordered parameters.  For more information, see parameter_modifiers.

• 

Using the new seq modifier, a single parameter can match a sequence of zero or more arguments of a specified type.

• 

Dependent types (where the type of one parameter depends on the value of another) have been made explicit by the introduction of the depends modifier.

External Interface

• 

A new command, MapleCheckInterrupt, has been added to the C external API. This command allows external compiled code to abort long running computations when a user presses the Stop button or Ctrl-C.

• 

Support for external calling to Fortran libraries has been extended to include the Intel(R) Fortran compiler on Windows(R) based machines.  A new header file, extern/include/imaplefortran.hf uses syntax compatible with the Intel Fortran compiler.

See Also

Index of New Maple 11 Features

Language and System Updates in Maple 11