News for hackers. Stuff that matters.
Re:Programming Language Memory Models by jqpabc123 on Tuesday July 06, 2021 @03:42PM (#27753309)
What if your function takes a pointer that might be pointing to an "atomic" variable?

Pointers can be used to circumvent most safety measures. If you obscure the access, you should assume responsibility for the result.

Re:Programming Language Memory Models by gpderetta on Wednesday July 07, 2021 @03:24AM (#27758345)
At least in C++, atomicity is part of the type system, and you would have to explicitly reinterpret cast it away.