t1=

t1= sets the first temporary of every node in the region named by dom to the value of an expression, evaluated at that node.

Syntax

t1= expression
t1 = expression
  • expression: as for x=, which states every rule the six equations share: the variables, the order, the blanks around the =, the line’s end, & and ;.

What it does

At every node of the region that an active element uses, James evaluates the expression and stores the result as the node’s t1, a value every later equation of the part may read. A temporary may hold NaN; the equation that reads it into a coordinate is the one that fails. The rules of x= apply unchanged.

When James applies it

Step 20 of the hierarchy, once, after the part’s last pass, as x= says. Legal only in the Part phase.

Diagnostics

Example

The script tests/corpus/261-swap-xy-p279/input.tg, which make test runs:

c the swap of Vol. 1, p. 279: the x- and y-coordinates exchanged through t1
block 1 3 5;1 2;1 2;0 1 2 0 1 0 1
t1 = x
x = y
y = t1
endpart

t1 keeps each node’s x-coordinate while the next equation overwrites x, and the third reads it back into y.

See also

  • x=: the rules of every equation.
  • t2=, t3=: the two other temporaries.

James 0.8.0.

This site uses Just the Docs, a documentation theme for Jekyll.