std.container update - now Array is in

Pillsy pillsbury at gmail.com
Fri May 28 10:06:02 PDT 2010


== Quote from Andrei Alexandrescu
(SeeWebsiteForEmail at erdani.org)'s article:

> I defined Array as a straightforward implementation of the
> homonym abstraction. There are a few imperfect corners, but
> by and large I'm starting to believe it's becoming possible
> to write certain cross-container codes.

I think it might be a good idea is to make it so that, for struct
types, when they're removed from the containers, their destructors
are run[1]. That way containers would be able to work with some
kinds of "smart pointer" abstractions once the compiler is up to
supporting them, which would make both the containers and
the "smart pointers" a good deal more useful.

Cheers,
Pillsy

[1] I asked some questions about the feasibility of this in d.learn.


More information about the Digitalmars-d mailing list