2 ms·
That's a very good point! I was coming from a Rust mindset, where ownership and mutability are somewhat separated. Although you can't own an object through an
by twic 7y ago
That's a very good point!
I was coming from a Rust mindset, where ownership and mutability are somewhat separated. Although you can't own an object through an immutable reference, you can own one through an immutable binding. But i am slowly learning that D's model is sufficiently different that there isn't a useful comparison here.