diff --git a/chapters/lexicalstructure.tex b/chapters/lexicalstructure.tex index 105901a62..d8ed099ec 100644 --- a/chapters/lexicalstructure.tex +++ b/chapters/lexicalstructure.tex @@ -133,7 +133,7 @@ \subsection{Modelica Keywords}\label{modelica-keywords} \end{center} In particular, it is not allowed to declare an element or enumeration literal with these names. -This also applies to the identifiers that name the predefined types \lstinline!Real!, \lstinline!Integer!, \lstinline!Boolean!, and \lstinline!String!, see \cref{predefined-types-and-classes}. +This also applies to the identifiers that name the predefined types \lstinline!Real!, \lstinline!Integer!, \lstinline!Boolean!, and \lstinline!String!, see \cref{predefined-types-and-classes}, and the variable \lstinline!time!, see \cref{built-in-variable-time}. \begin{example} Not all predefined types have names with restrictions: diff --git a/chapters/operatorsandexpressions.tex b/chapters/operatorsandexpressions.tex index 373d02d3a..31c0f2bb7 100644 --- a/chapters/operatorsandexpressions.tex +++ b/chapters/operatorsandexpressions.tex @@ -361,6 +361,7 @@ \subsection{Built-in Variable time}\label{built-in-variable-time}\indexinline{ti All declared variables are functions of the independent variable \lstinline!time!. The variable \lstinline!time! is a built-in variable available in all models and blocks, which is treated as an input variable. +The name \lstinline!time! is reserved and may not declared in any class. It is implicitly defined as: \begin{lstlisting}[language=modelica] input Real time (final quantity = "Time",