std.container.array.Array is not @nogc?

drug007 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jan 15 05:08:52 PST 2017


On 15.01.2017 15:49, Jack Stouffer wrote:
>
> No you're not.
>
> Array was designed before the @nogc attribute was created, so it wasn't
> coded with it's requirements in mind. Looking at the code, Array
> allocates GC memory for exception throwing in some cases. These can and
> should be changed to asserts.
>
> I am writing a PR now to fix this. There doesn't seem to be too many
> cases to fix.
Thanks for answer. Looking forward for your PR.


More information about the Digitalmars-d-learn mailing list