3 ms·
> but it still doesn't solve heap memory safety like Rust does Care to elaborate on this? > Ada also prevents dangling references to objects on the stack or t
by johnisgood 5y ago
> but it still doesn't solve heap memory safety like Rust does
Care to elaborate on this?
> Ada also prevents dangling references to objects on the stack or the heap, by providing automatic compile-time checking of "accessibility" levels, which reflect the lifetimes of stack and heap objects.[1]
Or what are you referring to?
[1] https://www.adacore.com/uploads/techPapers/Safe-Dynamic-Memory-Management-in-Ada-and-SPARK.pdf https://www.adacore.com/uploads/techPapers/Safe-Dynamic-Memo...