[Issue 4677] disallow GC via cmd line argument -nogc

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 18 08:07:02 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=4677

Mike Franklin <slavo5150 at yahoo.com> changed:

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

--- Comment #5 from Mike Franklin <slavo5150 at 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.

--


More information about the Digitalmars-d-bugs mailing list