Feedback from the Gripes and Wishes Campaign

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sat May 20 20:41:31 UTC 2023


On 21/05/2023 8:33 AM, Walter Bright wrote:
> The GC has a surprise advantage that nobody really thought of. It 
> enables much more CTFE to be done. It's hard to do meaningful CTFE 
> without memory allocation, and GC is perfectly suited to that task.

It makes a lot of sense looking at it in hindsight.

The GC is just a fancy pants memory allocator after all.

So the fact that we use the "GC language extensions" in CTFE is kinda 
irrelevant. It could just as easily work with malloc + free if somebody 
wanted to implement it.



More information about the Digitalmars-d mailing list