|
|
|
|
|
by aeonik
409 days ago
|
|
Well theoretically if you compiled the whole system with Zig or Rust, you could eliminate that undefined behavior of invalid pointers right? You'd need an OS that supports it, but it seems viable that the OS using allocators could know what happens at any given pointer. To do it statically though, and with enough detail, I suppose it would take something like Idris with dependent types, and I'd imagine at that point it would be a pretty tough exercise. |
|
Dependent Types could help, although i am unsure if it helps with raw pointers.