tlcore with demands

When the –demands option is set in tlcore, then it can handle demands. In this case, in each instant, there are four parts, not three. The fourth part is introduced with another %% pair, as follows:

header
%%
equations
%%
demands
%%
expressions
$$
header
%%
equations
%%
demands
%%
expressions
$$
...

A demand requests that a variable be computed in a specific context. It is written as a pair

(x,tuple);;

and it is registered internally by the system with a UUID. At each instant, should the tuple be valid in that instant, then this pair is evaluated, producing the result, along with the other expressions. The response for an instant therefore looks like this:

dem1demanswer1;;
...
demmdemanswerm ;;
%%
answer1;;
...
answern;;

If the –uuid option is set, then the UUID of the demands is printed out, as it is for equations:

eqnuuid1;;
...
eqnuuidl;;
%%
dem1demuuid1demanswer1;;
...
demmdemuuidmdemanswerm ;;
%%
answer1;;
...
answern;;

Should the –verbose option also be set, then the results will be of the form

eqn1eqnuuid1;;
...
eqnleqnuuidl;;
%%
dem1demuuid1demanswer1;;
...
demmdemuuidmdemanswerm ;;
%%
expr1answer1;;
...
exprnanswern;;

Advertisement