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

Add tests of default intent varargs and the types whose default intent is ref #25904

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lydia-duncan
Copy link
Member

Atomics and syncs are modifiable even after #25887. However, the change there does mean that arrays are not modifiable (though the deprecation message indicates that maybe that's going to stop being the case soon, too?)

Anyways, add tests locking in that behavior today, since I've written them. I made the arrays case a future, but if the deprecation message means it's changing then maybe all of them actually pass.

Running a fresh checkout of the tests now

…t is ref

Atomics and syncs are modifiable even after chapel-lang#25887.  However, the change there
does mean that arrays are not modifiable (though the deprecation message
indicates that maybe that's going to stop being the case soon, too?)

Anyways, add tests locking in that behavior today, since I've written them.  I
made the arrays case a future, but if the deprecation message means it's
changing then maybe all of them actually pass.

----
Signed-off-by: Lydia Duncan <[email protected]>
@bradcray
Copy link
Member

bradcray commented Sep 9, 2024

@lydia-duncan : On #25903, @jabraham17 pointed out that I led you astray, forgetting that while arrays are still ref intent for parallel intents, they are now const intent for argument passing. Thus, I think the varargs array future here should be made into a non-future, simply locking in the .bad file as the expected behavior. Sorry for my forgetfulness (change is hard!)

There's a combination of things going on here.  First - I don't think I was
operating from a clean branch.  Second - while arrays are currently passed by
ref, we are deprecating that behavior.  So the .good file output matches, and
the .future and .bad files are not currently necessary

----
Signed-off-by: Lydia Duncan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants