LibraryTools - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : System : Libraries and Packages : LibraryTools : LibraryTools/Priority

LibraryTools

 Priority
 display or modify lookup priority of a library

 Calling Sequence Priority( archive, priority )

Parameters

 archive - string; Maple library or directory containing Maple libraries priority - (optional) integer; lookup priority of the library

Description

 • The Priority( archive, priority) calling sequence displays or modifies lookup priority of a library specified in archive. For more details on library lookup priority, see march.
 • If archive is a directory, priority numbers of all the libraries in that directory are displayed. Otherwise, if archive is a file that is a Maple library (has the extension .lib or .mla), then just the priority number of that library is displayed. An error is raised if the path specified by archive does not exist.
 • The optional priority specifies the new lookup priority to be assigned to the library and the new lookup priority is displayed. When priority is not given, the lookup priority of the library is displayed but remains unchanged.

Examples

 > $\mathrm{with}\left(\mathrm{LibraryTools}\right):$
 > $\mathrm{LibLocation}≔\mathrm{cat}\left(\mathrm{kernelopts}\left(\mathrm{mapledir}\right),"/lib/myLib.mla"\right)$
 > $\mathrm{Create}\left(\mathrm{LibLocation}\right)$
 > $\mathrm{Priority}\left(\mathrm{LibLocation}\right)$
 > $\mathrm{Priority}\left(\mathrm{LibLocation},999\right)$

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam