-
There are several possibilities how to introduce a constant from Modelica.Constants in a class. E.g. for
Is there a preferrable way having advantages over others? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I would suggest avoiding the first one (new constant). I would prefer |
Beta Was this translation helpful? Give feedback.
-
One more variant: |
Beta Was this translation helpful? Give feedback.
One more variant:
final constant pi = Modelica.Constants.pi
because otherwise the constant could be modified with a modifier from an extending class.