Merge pull request #16792 from e-kayrakli/depr-cstring-to-string-asgnmt
Deprecate c_string to string assignment
As part of reducing c_string’s role in the language (#14215), this PR deprecates
assigning them to Chapel strings. Users should use
c_string is just a byte buffer that is not guaranteed to be in UTF-8. This
arises many questions about how/when they should be validated if they are
assigned to a Chapel string. As we already are planning to remove c_string
gradually, it is more reasonable to deprecate this operation instead of trying
to solve the issues around it.
This deprecates both:
proc =(x:string, y:c_string)
Also adds a deprecation test, and removes a relevant test.
[Reviewed by @mppf]
- [x] standard
- [x] gasnet