News for hackers. Stuff that matters.
Re:Show HN: How to program in Rust as if it was old school C... by SpaghettiCthulu on Wednesday December 21, 2022 @11:11AM (#34082540)
Assuming you're talking about the aliasing rules, my understanding is that that only applies if you are mixing pointers with references. If you just use `pointer::read` `pointer::write` the aliasing rules don't apply (doesn't mean it's safe, but it won't immediately be undefined behaviour to write to a mutable pointer while another mutable pointer exists, as it would be if you aliased a mutable reference).

There are no comments on this comment yet.