If you could make any changes to D, what would they look like?

Dukc ajieskola at gmail.com
Thu Oct 28 16:36:30 UTC 2021


On Thursday, 28 October 2021 at 15:40:21 UTC, Dennis wrote:
> On Thursday, 28 October 2021 at 15:18:54 UTC, Dukc wrote:
>> I think that, in addition to bugs, there is one hurdle in 
>> letting the compiler to fully optimise based on `pure`: how do 
>> we implement a function that manually frees an array?
>
> That's exactly what the linked issue 
> ([22277](https://issues.dlang.org/show_bug.cgi?id=22277)) is 
> about, so if you have any more insights on that, please post 
> them there.

No that's slightly different. The linked issue deals with 
strongly `pure` functions. I'm dreaming about letting the 
compiler to optimise based on weak `pure` too - not currently 
allowed if I read the spec right, but could be without this issue 
(I think?).


More information about the Digitalmars-d mailing list