D compiler need -nogc witch and document of library also need nogc button

dangbinghoo dangbinghoo at gmail.com
Tue Jun 11 08:59:01 UTC 2019


On Tuesday, 11 June 2019 at 08:16:31 UTC, Basile B. wrote:
> On Tuesday, 11 June 2019 at 08:08:14 UTC, Basile B. wrote:

>>
>> you can do this with a druntime switch or by calling GC.disable
>>  in your main()
>
> the druntime switch is "--DRT-gc=gc:manual". You pass it the 
> compiled program after its own args.

thanks, I know this from dlang.org. But this is not useful when 
trying to write @nogc code for a project.

We need to make sure we use only @nogc API when writing code, not 
when running the app.


Thanks!


----
binghoo dang


More information about the Digitalmars-d-learn mailing list