Skip to content

Commit

Permalink
Add description of what a default value in record means.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Jan 5, 2024
1 parent d07b419 commit 5d43d23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chapters/annotations.tex
Expand Up @@ -49,6 +49,7 @@ \section{Documentation}\label{annotations-for-documentation}\label{documentation

\subsection{How to Interpret Annotation Definitions}
If the annotation itself is described by a \lstinline!record! \emph{class} the annotation can be seen as a modifier for a \lstinline!record! \emph{component} with the same name.
A default value for a record member will be used if there is no modifier for that record member.
If the annotation is declared as a parameter the corresponding modifier must be an evaluable parameter.
If the annotation is declared as a constant the corresponding modifier must be a literal value.

Expand Down

0 comments on commit 5d43d23

Please sign in to comment.