# ERROR No permission to modify static procedure

**URL:** <https://swi-prolog.discourse.group/t/error-no-permission-to-modify-static-procedure/2512>\
**Category:** Help!\
**Created:** [June 13, 2020, 8:43pm UTC](https://swi-prolog.discourse.group/t/error-no-permission-to-modify-static-procedure/2512 "2020-06-13T20:43:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![john.arnold30](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@john.arnold30](https://swi-prolog.discourse.group/u/john.arnold30)\
**Post date:** [June 13, 2020, 8:43pm UTC](https://swi-prolog.discourse.group/t/error-no-permission-to-modify-static-procedure/2512/1 "2020-06-13T20:43:57Z")

</div>

Hi, I’m sure this is a pathetic noob question.

I have consulted a file that starts with this code:

**discontiguous flow/2, taskHasPreConditions/2, stateHasPostConditions/2, state/1, interaction/2.**

and it’s giving me an error message

**ERROR: c:/users/johna/onedrive/documents/github/dawb/dawb/testbed/data.pl:1:**  
\*\* No permission to modify static procedure `(discontiguous)/1’\*\*  
\*\* Defined at c:/program files/swipl/boot/init.pl:103\*\*

What does this mean, and what should I do?  
Thanks all

---

<div class="post-metadata">

**Author:** ![peter.ludemann](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/peter.ludemann/32/48_2.png) [@peter.ludemann](https://swi-prolog.discourse.group/u/peter.ludemann)\
**Post date:** [June 13, 2020, 9:35pm UTC](https://swi-prolog.discourse.group/t/error-no-permission-to-modify-static-procedure/2512/2 "2020-06-13T21:35:04Z")

</div>

You should put “:-” in front of the “discontiguous” directive:

```prolog
:- discontiguous flow/2, taskHasPreConditions/2, stateHasPostConditions/2, state/1, interaction/2.

```

Without the “:-”, this is interpreted as defining a discontiguous/1 predicate, which is disallowed. If you want to fully understand what’s going on, try this goal:

```prolog
?- write_canonical((discontiguous flow/2, taskHasPreConditions/2, stateHasPostConditions/2, state/1, interaction/2)).
discontiguous(','(/(flow,2),','(/(taskHasPreConditions,2),','(/(stateHasPostConditions,2),','(/(state,1),/(interaction,2))))))

```

---

<div class="post-metadata">

**Author:** ![john.arnold30](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@john.arnold30](https://swi-prolog.discourse.group/u/john.arnold30)\
**Post date:** [June 13, 2020, 9:57pm UTC](https://swi-prolog.discourse.group/t/error-no-permission-to-modify-static-procedure/2512/3 "2020-06-13T21:57:58Z")

</div>

Brilliant, thanks for your help.

John
