Skip to content

Commit

Permalink
[macros] Clarify introspection StateError on retry.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmorgan committed Jan 11, 2024
1 parent d0d1659 commit 4cd1202
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions working/macros/feature-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,10 @@ finish.
If a cycle arises in macro applications waiting for other macro applications to
complete then a `StateError ` is thrown.

Subsequent introspection calls on the same target will always throw
`StateError`, even if all macro applications on the target have finished, to
ensure a deterministic outcome.

Rules might be added in future to decide in some specific cases which macro
should run with incomplete introspection results to break a cycle. For example,
there might be a rule specifying that an application to a superclass runs first
Expand Down

0 comments on commit 4cd1202

Please sign in to comment.