3 ms·
You can, but that only solves part of the problem: keeping pointer types from being used as the wrong type. You still have the equivalent of use-after-free to g
by habitue 8y ago
You can, but that only solves part of the problem: keeping pointer types from being used as the wrong type. You still have the equivalent of use-after-free to guard against which the lifetime system tracks for you for pointers, but not for handles.
- the_mitsuhiko 8y agoYou can associate lifetimes with handles just fine.