|
|
|
|
|
by norman_roman
1028 days ago
|
|
>Ada95 introduced controlled types, which is basically Ada's version of RAII, no need to call Unchecked_Deallocation outside implementation details. Hardly any different from Rust code that uses unsafe underneath. This is basically like C++ destructors, but the problem is there are no move semantics in Ada, so you can't implement something like unique_ptr. It's hardly comparable with Rust. |
|