News for hackers. Stuff that matters.
Re:Goals and Priorities for C++ by corysama on Friday May 22, 2020 @04:11AM (#23269735)
You apparently are being downvoted unfairly while you are correct. Writing to u64 then reading from u32 is undefined behavior in C++. Only reading from the last union member that was written to is defined.
Re:Goals and Priorities for C++ by danielscrubs on Friday May 22, 2020 @06:29AM (#23270546)
Because he was using future tense, not past tense.
Re:Goals and Priorities for C++ by saagarjha on Friday May 22, 2020 @12:50PM (#23274127)
I doubt this will be changed in the future, especially since there have been multiple ways to represent this operation in the language now.