4 ms·
By this definition Rust is also not memory safe since you can use unsafe to free a pointer. You normally don't have access to the generation so you can't forge
by sirwhinesalot 3y ago
By this definition Rust is also not memory safe since you can use unsafe to free a pointer. You normally don't have access to the generation so you can't forge it without unsafe code.
- pkulak 3y agoBut Rust doesn’t claim to be safe if you use unsafe blocks. It’s in the name.
- sirwhinesalot 3y agoThere's no way in Vale to get the generation count of a generational reference without unsafe code, so I really don't see the difference.