Dynamic Code

# Chapter 12 Dynamic Code

Support for dynamic code is provided partly for compatibility with Prolog. It is worth noting that ECLiPSeprovides much better primitives (see chapter 10) to support the non-logical storage of information—a major use for dynamic predicates in Prolog.

An ECLiPSe predicate can be made dynamic. That is, it can have clauses added and removed from its definition at run time. This chapter discusses how to do this, and what the implications are.

- Compiling Procedures as Dynamic or Static
- Altering programs at run time
- Differences between static and dynamic code