Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
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

Make type explicit for fill operator #4393

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Conversation

beutlich
Copy link
Member

This is derived from #4389. It helps tools to correctly deduce the array type, just by checking the argument of fill.

Note, that it already was a mixed usage of Integer zero and Real zero in Media functions.

Copy link
Contributor

@casella casella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I see the point of this PR, since all these functions have a third input which is a subtype of Real; as Modelica defines automatic conversions from Integer to Real, is there any difference?

Besides, the default is actually an empty array.

That said, I don't see anything wrong with this change, even if I don't get the point 😃

Copy link
Contributor

@casella casella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@casella
Copy link
Contributor

casella commented Jul 31, 2024

@arunkumar-narasimhan can you please review this PR so that it gets merged in?

@Esther-Devakirubai this can also be ported to maint/v4.1.x. Thanks!

@casella casella requested review from arunkumar-narasimhan and removed request for Harisankar-Allimangalath July 31, 2024 09:53
@beutlich beutlich merged commit 35ad28d into modelica:master Aug 19, 2024
11 checks passed
@beutlich beutlich deleted the set-type branch August 19, 2024 18:58
@beutlich beutlich added this to the MSL4.2.0 milestone Aug 19, 2024
Esther-Devakirubai pushed a commit that referenced this pull request Sep 6, 2024
@Esther-Devakirubai
Copy link
Contributor

Backporting this to maint 4.1.x by #4462

casella pushed a commit that referenced this pull request Sep 10, 2024
Co-authored-by: Thomas Beutlich <modelica@tbeu.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: Media Issue addresses Modelica.Media P: trivial Trivial issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants