# How can the module for a term be identified?

**URL:** <https://swi-prolog.discourse.group/t/how-can-the-module-for-a-term-be-identified/1536>\
**Category:** Help!\
**Created:** [November 26, 2019, 1:18pm UTC](https://swi-prolog.discourse.group/t/how-can-the-module-for-a-term-be-identified/1536 "2019-11-26T13:18:42Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [November 28, 2019, 9:50am UTC](https://swi-prolog.discourse.group/t/how-can-the-module-for-a-term-be-identified/1536/25 "2019-11-28T09:50:16Z")

</div>

> [@torbjorn.lager](#):
>
> receive(M:Clauses, M:Options) :-

Ok. In that case though, your code should not use the same `M` in `receive(M:Clauses, M:Options) :-` as the two arguments can have different qualifications if one or both are qualified explicitly. So, the first M is the default quafifier for calling the guard and body, while the second must be used for meta\_options to provide the default qualifier for the option value (which is left untouched if it is already qualified).

[Previous page](https://swi-prolog.discourse.group/t/how-can-the-module-for-a-term-be-identified/1536.md?page=1)
