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

Reply via email to