# \#module

**URL:** https://swi-prolog.discourse.group/tag/module/123.md

[Latest](https://swi-prolog.discourse.group/latest.md) · [Categories](https://swi-prolog.discourse.group/categories.md) · [Tags](https://swi-prolog.discourse.group/tags.md)

---

## [Reusing predicate name across modules](https://swi-prolog.discourse.group/t/reusing-predicate-name-across-modules/7181)

<div class="topic-metadata">

**Author:** [@viridium](https://swi-prolog.discourse.group/u/viridium)\
**Replies:** 2\
**Last updated:** [January 21, 2024, 2:37am UTC](https://swi-prolog.discourse.group/t/reusing-predicate-name-across-modules/7181 "2024-01-21T02:37:44Z")

</div>

With use\_module/1, it’s possible to refer to the imported predicates using the module name as prefix, as in module\_name:predicate. This implies that I should be able to reuse predicate names across modules without clashe…

---

## [Module Inheritance](https://swi-prolog.discourse.group/t/module-inheritance/6096)

<div class="topic-metadata">

**Author:** [@quenio](https://swi-prolog.discourse.group/u/quenio)\
**Replies:** 1\
**Last updated:** [January 16, 2023, 9:28am UTC](https://swi-prolog.discourse.group/t/module-inheritance/6096 "2023-01-16T09:28:14Z")

</div>

Hello, I am new to Prolog. I’d like to use a mechanism similar to class inheritance in object-oriented languages, but with SWI Prolog modules. I’d like to have a more specialized module inherit predicates from a more ge…

---

## [Proposing the HandAxe Pattern Language: fully unambiguous names for operations on lists, sets, and dictionaries!](https://swi-prolog.discourse.group/t/proposing-the-handaxe-pattern-language-fully-unambiguous-names-for-operations-on-lists-sets-and-dictionaries/6053)

<div class="topic-metadata">

**Author:** [@weavermarquez](https://swi-prolog.discourse.group/u/weavermarquez)\
**Replies:** 2\
**Last updated:** [December 25, 2022, 11:50pm UTC](https://swi-prolog.discourse.group/t/proposing-the-handaxe-pattern-language-fully-unambiguous-names-for-operations-on-lists-sets-and-dictionaries/6053 "2022-12-25T23:50:23Z")

</div>

note: crossposted from r/prolog Time spent considering naming, is time well spent. — Maurice Rabb HandAxe HandAxe is a vocabulary with extremely clear semantics for operating on Ordered and Unordered L…

---

## [Multiple modules definitions in one file?](https://swi-prolog.discourse.group/t/multiple-modules-definitions-in-one-file/5549)

<div class="topic-metadata">

**Author:** [@chansey97](https://swi-prolog.discourse.group/u/chansey97)\
**Replies:** 2\
**Last updated:** [June 23, 2022, 10:20am UTC](https://swi-prolog.discourse.group/t/multiple-modules-definitions-in-one-file/5549 "2022-06-23T10:20:44Z")

</div>

Reading the DCG tutorial, it seems that he can define multiple modules in one file by end\_module/1: %% module1 :- module(english). :- export(sentence/3). % ... :- end\_module(english). %% module2 :- module(spanish). :…
