type/moduledefinition
check for a module definition
Calling Sequence
Parameters
Description
Examples
type(expr, moduledefinition)
expr
-
any expression
An expression of type moduledefinition is generated by the syntax for module definitions.
The command type(expr, moduledefinition) returns true if expr is of type moduledefinition. Otherwise, false is returned.
Module definitions are not normally encountered in routine programming, since they evaluate immediately to modules. However, they may occur in procedure bodies, or in other, enclosing module definitions.
See the help page module for more information about modules and their definitions.
type⁡moduleend module,moduledefinition
false
type⁡moduleend module,`module`
true
type⁡'moduleend module',moduledefinition
type⁡'moduleend module',`module`
See Also
module
type
type/module
Download Help Document