Skip to content

Commit

Permalink
Clarify that component references work in this form.
Browse files Browse the repository at this point in the history
It is a clarification, since it already states that they are component-references and the quoted part includes it.

See modelica/ModelicaStandardLibrary#4494
  • Loading branch information
HansOlsson committed Oct 28, 2024
1 parent b4e921e commit 95fe025
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chapters/annotations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,7 @@ \subsubsection{Text}\label{text}
When quoted identifiers (e.g., \lstinline!rec.'}'.'quoted ident'!) are involved, the form \%\{\emph{par}\} must be used.
Here, \emph{par} is a general \lstinline[language=grammar]!component-reference!, and the macro can be directly followed by a letter.
Thus \lstinline!%{w}x%{h}! gives the value of \lstinline!w! directly followed by \emph{x} and the value of \lstinline!h!, while \lstinline!%wxh! gives the value of the parameter \lstinline!wxh!.
Additionally, \lstinline!%{a.p}! should give the value of the parameter \lstinline!p! in the component \lstinline!a!.
If the parameter does not exist it is an error.
\end{itemize}

Expand Down

0 comments on commit 95fe025

Please sign in to comment.