-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AdditionalSqrt #4452
AdditionalSqrt #4452
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Esther-Devakirubai #4396 affects four files, while this backport only affects two. I guess there are some additional commits missing
Will check. |
@casella I see only 2 files being affected by this. Please correct me if I am wrong. |
@Esther-Devakirubai there are more commits in #4396 : https://github.com/modelica/ModelicaStandardLibrary/pull/4396/commits but this PR only contains the contents of one of them. |
Yes, the #4396 PR contains multple commits, but for some reason the cherry-picking only considered the first one |
Remaining are: documentation, or combined with other fractional exponents.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does still not have the same changes as #4396 which it claims to backport.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes now match what it claims to backport.
I have no opinion on whether this should be backported, but @casella already said it was OK to backport, so approving.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get why .sqrt
and not just sqrt
. sqrt(v) is defined as the square root if v is Real or Integer, which is the case here. @HansOlsson, why the leading dot?
There is a comment explaining that on the line: "Real, not complex sqrt". Due to lookup |
@casella Can this be approved and Merged? |
I previously assumed that built-in functions had precedence in the look-up process, so they could not be shadowed. I obviously missed Section 5.6.1.1 saying: "The builtin classes are put into the unnamed root of the class tree". |
Yes, please go ahead. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
😅 |
Backport #4396