The D standard library is built on GC, is that a negative or positive?
areYouSureAboutThat
areYouSureAboutThat at gmail.com
Tue Dec 13 07:56:03 UTC 2022
On Tuesday, 13 December 2022 at 07:11:34 UTC, thebluepandabear
wrote:
>
> He said that if he doesn't want to implement GC he misses out
> on the standard library, which for him is a big disadvantage.
>
your 'friends' assertion is not entirely correct:
module test;
@safe:
@nogc:
import std.container.array;
void main()
{
auto arr = Array!int(0, 1, 2);
// fine if you comment out @safe:
// otherwise..Error: @safe cannot call @system constructor ->
std.container.array.Array!
}
More information about the Digitalmars-d
mailing list