Skip to content

Commit

Permalink
Remove part about not modifiying constants, due to changes in Modelic…
Browse files Browse the repository at this point in the history
…a 3.2.

Closes modelica#1709
  • Loading branch information
HansOlsson committed Feb 13, 2020
1 parent cad3760 commit 5380f17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapters/functions.tex
Expand Up @@ -988,7 +988,7 @@ \section{Record Constructor Functions}\doublelabel{record-constructor-functions}
\begin{itemize}
\item
Component declarations which do not allow a modification {[}\emph{such
as} \lstinline!constant Real c=1! \emph{or} \lstinline!final parameter Real!{]} are declared
as} \lstinline!final parameter Real!{]} are declared
as protected components in the record constructor function.
\item
Prefixes (constant, parameter, final, discrete,...) of the remaining
Expand Down Expand Up @@ -1078,7 +1078,7 @@ \section{Record Constructor Functions}\doublelabel{record-constructor-functions}
record Record2
import Modelica.Math.*;
extends Record1;
constant Real c1 = 2.0;
final constant Real c1 = 2.0;
constant Real c2;
parameter Integer n1 = 5;
parameter Integer n2;
Expand Down Expand Up @@ -1116,7 +1116,7 @@ \section{Record Constructor Functions}\doublelabel{record-constructor-functions}
input Real r7[n2];
output Record2 !\emph{result}!(r0=r0,c2=c2,n1=n1,n2=n2,r1=r1,r2=r2,r4=r4,r5=r5,r6=r6,r7=r7);
protected
constant Real c1 = 2.0; // referenced from r2
final constant Real c1 = 2.0; // referenced from r2
final parameter Real r3 = Modelica.Math.cos(r2);
end Record2;
end Demo;
Expand Down

0 comments on commit 5380f17

Please sign in to comment.