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

Basile B. b2.temp at gmx.com
Tue Jun 11 08:08:14 UTC 2019


On Tuesday, 11 June 2019 at 08:05:31 UTC, dangbinghoo wrote:
> hi there,
>
> I think that D compiler needs -nogc switch to fully disable gc 
> for a project, and document of phobos also needs a friendly way 
> to list-out all @nogc API.
>
> we already have -betterC, and betterC disabled GC, why we could 
> not have a standalone option for doing this?
>
>
>
> ----
> binghoo dang

you can do this with a druntime switch or by calling GC.disable  
in your main()


More information about the Digitalmars-d-learn mailing list