Kinds of containers

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun Oct 25 12:31:06 PDT 2015


On 10/23/2015 07:21 PM, bigsandwich wrote:
> On Friday, 23 October 2015 at 17:44:55 UTC, deadalnix wrote:
>> On Friday, 23 October 2015 at 11:03:37 UTC, Andrei Alexandrescu wrote:
>>> [...]
>>
>> Sure. We have a problem when it come to collection in the fact that
>> type qualifier do not turtle down as one would expect.
>>
>> [...]
>
> Its not just type qualifiers. Containers of derived types have the same
> problem.  This is also a problem in C++.

This is something easy to live with. In fact, mutable containers are not 
supposed to even convert to containers of base objects. -- Andrei



More information about the Digitalmars-d mailing list