Modern C++ Lamentations

welkam wwwelkam at
Sun Dec 30 21:09:26 UTC 2018

On Sunday, 30 December 2018 at 13:59:57 UTC, Petar Kirov 
[ZombineDev] wrote:
> On the other hand, hopefully soon we'll have the option to turn 
> on the GC for the frontend. See: 

GC might not be needed here. Compiler compiles your program in 
steps and memory that were used in previous step could be 
deallocated later in one place. We could just use a couple 
different allocators for different parts of compiler and call 
free on them when we are sure that nothing will need that data 
anymore. For example we can deallocate file buffers after we 
parsed those files. A person more familiar with compiler could 
find more cases where this kind of strategy is applicable.

More information about the Digitalmars-d mailing list