thismodule - Maple Help

Online Help

All Products    Maple    MapleSim

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


Calling Sequence




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



moduleexporte;end module


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