my d blog has idea of effect system to replace @nogc etc

rikki cattermole rikki at cattermole.co.nz
Tue Aug 16 15:07:35 UTC 2022


On 17/08/2022 3:05 AM, Guillaume Piolat wrote:
> On Tuesday, 16 August 2022 at 15:01:05 UTC, rikki cattermole wrote:
>>
>> But one key difference is it is designed to work with the GC even if 
>> it is -betterC @nogc @safe nothrow.
> 
> How do you do that?

Via dub's injectSourceFiles (that I added).

https://github.com/Project-Sidero/basic_memory/blob/main/source/sidero/base/allocators/gc_hook.d

https://github.com/Project-Sidero/basic_memory/blob/main/source/sidero/base/allocators/gc.d

https://github.com/Project-Sidero/basic_memory/blob/main/source/sidero/base/allocators/locking.d#L111


More information about the Digitalmars-d-announce mailing list