Memory management

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Tue Sep 29 20:51:54 UTC 2020


On Tuesday, 29 September 2020 at 16:03:39 UTC, IGotD- wrote:
> That little simple example shows that you don't necessarily 
> need to know things in advance in order to have static 
> lifetimes. However, there are examples where there is no 
> possibility for the compiler to infer when the object goes out 
> of scope. Multiple ownership is an obvious example of that.

Seems like a mix of Go and Rust...  People will probably end up 
using array indexes instead of references... Just like in Rust.



More information about the Digitalmars-d-learn mailing list