thismodule - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Modules : module/thismodule

thismodule

Calling Sequence

thismodule

Description

• 

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).

Examples

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: ,procprintthismoduleend proc,moduleexporte;end module

(1)

m:-e

moduleexporte;end module

(2)

See Also

module, procname, type[module], type[moduledefinition]


Download Help Document

Was this information helpful?



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