Resizing an array: Dangerous? Possibly buggy?

%u wfunction at hotmail.com
Wed Mar 9 10:15:42 PST 2011


Huh, interesting, okay.

I think pitfalls like this one (with the garbage collector, for
example) should definitely be documented somewhere. I would imagine
that quite a few people who try to set the length of an array won't
realize that they can run out of memory this way, especially because
it's nondeterministic in many cases.

Anyway, thanks for the response!


More information about the Digitalmars-d mailing list