Feedback from the Gripes and Wishes Campaign

Walter Bright newshound2 at digitalmars.com
Mon May 29 05:14:53 UTC 2023


On 5/28/2023 10:09 AM, IGotD- wrote:
> Not having deterministic teadown of resources is a bit unnerving. I was never a 
> big fan of the undeterministic deconstructors in D compared to the more 
> deterministic in C++.

Struct destructors in D are equally deterministic as in C++.

> Not solving lifetimes in CTFE is likely to limit its versatility. This also 
> include proper freeing of resourced in CTFE.

A GC makes CTFE more versatile, not less.

 > For example if you write to a file
 > and do not close the file in CTFE, what happens?

CTFE (deliberately) does not allow access to the operating system, including 
file I/O. Jonathan Blow's Jai language does, for comparison.


More information about the Digitalmars-d mailing list