Smart pointers instead of GC?

Johannes Pfau nospam at example.com
Sun Feb 2 10:15:13 PST 2014


Am Sun, 2 Feb 2014 18:36:29 +0100
schrieb Andrej Mitrovic <andrej.mitrovich at gmail.com>:

> On 2/2/14, Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
> > 2. Work on Phobos to see what can be done about avoiding unnecessary
> > allocation. Most likely we'll need to also add a @nogc flag.
> 
> See Johannes'es pull here:
> https://github.com/D-Programming-Language/dmd/pull/1886
> 
> Where he comments:
> 
> ```
> Note: This could also be a start to implement a -nogc parameter which
> would check a whole module not to use the GC. This is less intrusive
> than a @nogc attribute.
> ```

The last iteration actually implements -nogc and the pull request
also provides almost everything needed for @nogc. The attribute
should probably be added in a second pull request as I expect more
discussions there.


More information about the Digitalmars-d mailing list