next up previous contents
Next: The cut (!/0) Up: Side Effect Programming Previous: Side Effect Programming

Modifying the Program at Runtime

Prolog permits this but it is bad programming style ---unless you are intending to write programs to modify themselves.

It is usually better to consider carrying around the wanted information as an extra argument in all the relevant clauses.



Paul Brna
Mon May 24 20:14:48 BST 1999