Skip to content

How to introduce Modelica.Constants in classes #3941

Answered by thorade
tobolar asked this question in Q&A
Discussion options

You must be logged in to vote

One more variant:
final constant pi = Modelica.Constants.pi because otherwise the constant could be modified with a modifier from an extending class.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@tobolar
Comment options

tobolar Jan 24, 2022
Collaborator Author

Comment options

You must be logged in to vote
0 replies
Answer selected by hubertus65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants