Would the ownership model make D lang as complicated as Rust?
rikki cattermole
rikki at cattermole.co.nz
Sun Nov 15 09:21:57 UTC 2020
On 15/11/2020 10:09 PM, Walter Bright wrote:
> On 11/13/2020 9:33 PM, joe wrote:
>> 2. Would there be GC still if we use the ownership model?
>
> Yes, though you wouldn't bother using @live functions if you used the
> GC. There's be no point.
If you could turn on @live for specific variables, then there would be a
point.
System resources (especially windowing related) absolutely needs a way
to guarantee destruction and prevent moving a window ownership to
another thread.
More information about the Digitalmars-d
mailing list