# When a new variable is created it can clash with existing variables (maybe not)

**URL:** <https://swi-prolog.discourse.group/t/when-a-new-variable-is-created-it-can-clash-with-existing-variables-maybe-not/7456>\
**Category:** Help!\
**Created:** [May 17, 2024, 11:07am UTC](https://swi-prolog.discourse.group/t/when-a-new-variable-is-created-it-can-clash-with-existing-variables-maybe-not/7456 "2024-05-17T11:07:25Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![ridgeworks](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/ridgeworks/32/886_2.png) [@ridgeworks](https://swi-prolog.discourse.group/u/ridgeworks)\
**Post date:** [May 22, 2024, 6:36pm UTC](https://swi-prolog.discourse.group/t/when-a-new-variable-is-created-it-can-clash-with-existing-variables-maybe-not/7456/12 "2024-05-22T18:36:00Z")

</div>

Should this also apply to variables with attributes? E.g.,

```prolog
?- set_prolog_flag(toplevel_print_anon,false), freeze(_X,number(_X)).
freeze(_X, number(_X)).

```

---

_[View the full topic](https://swi-prolog.discourse.group/t/when-a-new-variable-is-created-it-can-clash-with-existing-variables-maybe-not/7456)._
