Direct Attribute Dependence Cycles
Typical Error Situations
An attribute directly depends on itself.
ATTR a : sometype;
RULE: root ::= X
COMPUTE X.a = ADD(1, X.a);
END;
RULE: X ::= '.'
END;
results in:
ERROR: DIRECT cyclic dependencies;
see OrdInfo, or use gorto
ERROR: evaluation order for X.a not found
To locate the error write a .ctl file containing the line
ORDER: GRAPH DIRECT_RULE;
add it to your .specs or .fw file and make a request for
foo.specs:OrdInfo>
which results in
GRAPHS FOR DIRECT DEPENDENCIES
==============================
DIRECT GRAPH FOR RULE rule_1 ROW 3; COL 5
root ::= X
ATNO CLASS ATNAME DEPENDS ON
0 INH X.a CYCLIC [0]
END RULE
Back to Typical Eli Errors
|