Difference between revisions of "Error Messages/40627"
(→Cause) |
|||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | + | == Error text == | |
− | = Cause = | + | :<code>The definition of 'Pr_t' cannot be parsed due to a circular dependency.''</code> |
+ | |||
+ | == Cause == | ||
This occurs when some value needed for parsing the definition cannot be computed unless the definition is already parsed. This value needed is most likely a table that appears within the definition. To fix, make sure that the indexes used by the table do not depend, directly or indirectly, on the table itself. | This occurs when some value needed for parsing the definition cannot be computed unless the definition is already parsed. This value needed is most likely a table that appears within the definition. To fix, make sure that the indexes used by the table do not depend, directly or indirectly, on the table itself. | ||
Line 9: | Line 11: | ||
Here is a simple example: | Here is a simple example: | ||
− | + | :<code>Index I := 1..Size(T)</code> | |
− | + | :<code>Variable T := Table(I)(1, 2, 3)</code> | |
+ | |||
+ | In this example, the definition of <code>T</code> cannot be parsed because parsing the expression <code>Table(I)(1, 2, 3)</code> requires the index value for <code>I</code>. The index value of <code>I</code> bases itself on the [[Size]] of the computed result of <code>T</code>. Hence, a circular dependency exists. | ||
− | + | ==See Also== | |
+ | * [[Definition]] | ||
+ | * [[Table]] | ||
+ | * [[Size]] |
Latest revision as of 00:11, 9 March 2016
Error text
The definition of 'Pr_t' cannot be parsed due to a circular dependency.
Cause
This occurs when some value needed for parsing the definition cannot be computed unless the definition is already parsed. This value needed is most likely a table that appears within the definition. To fix, make sure that the indexes used by the table do not depend, directly or indirectly, on the table itself.
Here is a simple example:
Index I := 1..Size(T)
Variable T := Table(I)(1, 2, 3)
In this example, the definition of T
cannot be parsed because parsing the expression Table(I)(1, 2, 3)
requires the index value for I
. The index value of I
bases itself on the Size of the computed result of T
. Hence, a circular dependency exists.
See Also
Comments
Enable comment auto-refresher