7.2.11 Memory Management and Debugging Facilities

On each assignment or implicit creation of variable as, e.g., in FOR - NEXT loops, a new variable is added to the data space as we have seen in 7.2.8. The same happens when we create fuzzy variables and more complex objects like constraints. To remove variables, that are no longer of interest or that have only temporary character, we can use the DELETE statement to cancel this variable (or object). An example was already given in 7.2.8. To delete the whole data space we can use the qualifier ALL, in order to reduce the work that had to be done if we deleted each variable by name.

LET temp = ...

...

/* temp is no longer of interest */

DELETE temp

...

/* the variables in the memory */

/* are no more of interest */

DELETE ALL

Sometimes, especially while debugging and coding, it is useful to take a look at the data space and the variables values, their formula, computation flags etc. In much the same way as deleting objects, we can display variables on the console by the use of MEMDUMP. Again an additional qualifier can determine whether all objects or just a single one should be displayed:

MEMDUMP varname

MEMDUMP ALL

In the following sections we will treat CSI(C&F)'s language features for fuzzy computation. MEMDUMP and DELETE can be applied to most of those objects too, as, e.g.,

DELETE RULESET

DELETE EVALTREE

MEMDUMP RULESET