4 ms·
The compiler won't allow you to compile such code without the unsafe. The unsafe is *you* promising the compiler that *you* have checked to ensure that the add
by timschmidt 2y ago
The compiler won't allow you to compile such code without the unsafe. The unsafe is *you* promising the compiler that *you* have checked to ensure that the address will always be legal. So that the compiler will allow you to compile the code.
- steveklabnik 2y agoRight, I'm saying "allow" has two different connotations, and only one of them, the one that you're talking about, applies.
- timschmidt 2y agoI gotcha. I misread and misunderstood. Yes, we agree.