Thread overview
[Issue 4677] disallow GC via cmd line argument -nogc
May 18, 2018
Dmitry Olshansky
May 18, 2018
Mike Franklin
Dec 17, 2022
Iain Buclaw
April 25, 2014
https://issues.dlang.org/show_bug.cgi?id=4677

bearophile_hugs@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs@eml.cc

--- Comment #3 from bearophile_hugs@eml.cc ---
We now have both the -vgc switch, and the @nogc attribute. So I think this issue should be closed.

--
June 10, 2015
https://issues.dlang.org/show_bug.cgi?id=4677

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|future                      |D2

--
May 18, 2018
https://issues.dlang.org/show_bug.cgi?id=4677

Dmitry Olshansky <dmitry.olsh@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh@gmail.com

--- Comment #4 from Dmitry Olshansky <dmitry.olsh@gmail.com> ---
There is also -beterC switch that disallows use of any of DRuntime features and rewries some of common ones to libc-based implementation.

--
May 18, 2018
https://issues.dlang.org/show_bug.cgi?id=4677

Mike Franklin <slavo5150@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slavo5150@yahoo.com

--- Comment #5 from Mike Franklin <slavo5150@yahoo.com> ---
One can also decorate class instances with `scope` which allocates them on the stack instead of the GC.

One can also use `@disable new()` to prevent creating new instances of a type, and instead delegate allocation and construction to factory methods.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=4677

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

--