thismodule
Calling Sequence
Description
Examples
Within the body of a module definition, the special parameter thismodule refers to the current module. It is analogous to procname as used in procedure definitions, but refers to the module instance (not a name).
m := module() export e; print( `BEFORE: `, op( eval(thismodule) ) ); e := proc() print( thismodule ) end proc; print( `AFTER: `, op( eval(thismodule) ) ); end module:
BEFORE: ,e,moduleexporte;end module
AFTER: ,procprint⁡thismoduleend proc,moduleexporte;end module
m:-e⁡
moduleexporte;end module
See Also
module
procname
type/module
type/moduledefinition
Download Help Document