On 04/07/2017 12:24 PM, Hui Zhang wrote:
Thank you! What do you mean by the following statement? What are their "parent"?​

    For user-defined modules themselves, you would need to check their
    modTag directly instead of the modTag of their parent.


Hi Hui,

Sorry to be unclear: by parent, I meant the module in which the ModuleSymbol is defined:

module Parent {
module Child { // To determine if Child is a user module, check this modTag directly, not Parent's

proc foo() { ... } // To determine if foo is a user function, check the modTag of Child, the module in which it is defined
  }
}

This is important because the "parent" of top level modules is not a user module, if I recall correctly. So in the example above, while the modTag of Parent and Child should match (because they are defined in the same file), the modTag of Parent and its "parent" won't.

Does that make sense?  Or am I just being confusing?

Thanks,
Lydia
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers

Reply via email to