News for hackers. Stuff that matters.
Re:Checked C by WalterBright on Wednesday December 21, 2022 @04:00PM (#34086327)
Storing two pointers into the same array is a memory safety problem. It's hard to implement a borrow checker when there are two live mutable pointers into the same memory object.
Re:Checked C by int_19h on Friday December 23, 2022 @06:15PM (#34111750)
I would expect the borrow checker to treat a slice as a logical pointer to all elements that are addressable through it, regardless of how it's implemented under the hood.