On Tuesday, 11 June 2019 at 08:08:14 UTC, Basile B. wrote:
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()

the druntime switch is "--DRT-gc=gc:manual". You pass it the compiled program after its own args.

Reply via email to