Go to the first, previous, next, last section, table of contents.


Understanding Nicknames

It is desirable for packages to have self-explainatory names such as "mudShell", but lazy programmers may ofter prefer typing "ms:fn" to typing "mudShell:fn": To reduce needless bloodshed, Muq supports package nicknames, additional names for a given package.

The simplest way to assign nicknames to a package is to replace the usual

"mudShell" inPackage

line creating and selecting the package in the source file with a line like

[ "mudShell" "ms" "new-shell" | ]inPackage

The first name given becomes the official name of the package if it is created; the remaining names become nicknames, stored in @$s.package$s.nicknames.

Also, See section `]renamePackage' in Muf Reference.


Go to the first, previous, next, last section, table of contents.