DIP 1038--"@mustUse" (formerly "@noDiscard")--Accepted
rikki cattermole
rikki at cattermole.co.nz
Wed Feb 9 17:54:17 UTC 2022
On 10/02/2022 5:21 AM, Paul Backus wrote:
> - C (gcc/clang): __attribute__((warn_unused_result))
C23 will also have [[nodiscard]]
Not only will it have that on functions, but also support a string too.
Unfortunately its looking like we have chosen to diverge from C, and
therefore won't be completely C compatible soon.
Will be exciting as to what kind of bugs crop up because of this!
More information about the Digitalmars-d-announce
mailing list