Feedback from the Gripes and Wishes Campaign
Timon Gehr
timon.gehr at gmx.ch
Sat May 27 20:06:21 UTC 2023
On 27.05.23 20:26, Steven Schveighoffer wrote:
> On 5/27/23 1:09 AM, Walter Bright wrote:
>> On 5/20/2023 1:41 PM, Richard (Rikki) Andrew Cattermole wrote:
>>> It could just as easily work with malloc + free if somebody wanted to
>>> implement it.
>>
>> Nobody has yet solved that problem.
>
> malloc -> new
> free -> noop
>
> It's CTFE, nobody cares about memory leaks because the whole context
> will go away anyway.
>
> We don't run the GC at CTFE either.
>
> -Steve
```d
import core.stdc.stdlib;
enum p=malloc(16);
void main(){
free(p);
}
```
More information about the Digitalmars-d
mailing list