# Named constants?

**URL:** <https://swi-prolog.discourse.group/t/named-constants/2289>\
**Category:** Help!\
**Created:** [May 6, 2020, 3:23pm UTC](https://swi-prolog.discourse.group/t/named-constants/2289 "2020-05-06T15:23:32Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [May 8, 2020, 4:02pm UTC](https://swi-prolog.discourse.group/t/named-constants/2289/26 "2020-05-08T16:02:09Z")

</div>

> [@stuz5000](#):
>
> I’m a little confused about how it works (more like, when it works).

If there were phases to learning term expansion I think it would have

phase n. I am little confused.  
phase n+m. I am totally confused, but happier/more saddened. I can’t even tell which one.

While this is not a magical answer, it is better than nothing.

[Simple term\_expansion debugging](https://swi-prolog.discourse.group/t/simple-term-expansion-debugging/2086)

* * *

While I have not had time to make effective use of this as I only found it a few weeks ago, it does have more examples of using term expansion.

[Barry’s Prolog](http://barrywatson.se/download/manual.pdf)  
Reference Manual & User Guide

Search for `expand_term`

---

_[View the full topic](https://swi-prolog.discourse.group/t/named-constants/2289)._
