28
Region Operators
•
ZPL has region operators taking as operands a
region and a direction, and producing a region
•
at
translates the region’s index set in the direction
•
of
defines a new region adjacent to the given region along
direction edge and of direction extent
region R = [1..8,1..8];
C = [2..7,2..7];
var X, Y : [R] byte;
Direction e = [ 0,1];
n = [-1,0];
ne = [-1,1];
[C] X:=
[C at e] Y:=
[n of C] Y:=
[C] Y:=X@ne