Thread overview | ||||||
---|---|---|---|---|---|---|
|
March 02, 2015 Shouldn't std.conv.emplace be @nogc? | ||||
---|---|---|---|---|
| ||||
I guess the reason why std.conv.emplace is not @nogc-ed is that nobody added it yet? I didn't see using of gc in the emplace sources. |
March 02, 2015 Re: Shouldn't std.conv.emplace be @nogc? | ||||
---|---|---|---|---|
| ||||
Posted in reply to drug | On Monday, 2 March 2015 at 12:37:33 UTC, drug wrote:
> I guess the reason why std.conv.emplace is not @nogc-ed is that nobody added it yet? I didn't see using of gc in the emplace sources.
It's a template and an instance will be @nogc, if possible.
|
March 02, 2015 Re: Shouldn't std.conv.emplace be @nogc? | ||||
---|---|---|---|---|
| ||||
Posted in reply to drug | It should be automatically inferred. emplace might be used to call constructors that use the GC and putting an explicit @nogc on it forbids that, so it would limit the flexibility. |
March 02, 2015 Re: Shouldn't std.conv.emplace be @nogc? | ||||
---|---|---|---|---|
| ||||
Posted in reply to drug | On Monday, 2 March 2015 at 12:37:33 UTC, drug wrote: > I guess the reason why std.conv.emplace is not @nogc-ed is that nobody added it yet? I didn't see using of gc in the emplace sources. Soon: https://github.com/D-Programming-Language/phobos/pull/2999 |
Copyright © 1999-2021 by the D Language Foundation