Containers

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 4 17:21:41 PDT 2015


On 09/05/2015 01:15 AM, Andrei Alexandrescu wrote:
> On 09/04/2015 06:36 PM, rsw0x wrote:
>> On Friday, 4 September 2015 at 22:21:16 UTC, bitwise wrote:
>>> It specifies containers as reference types, but then goes on to
>>> explain how that's only half true, and tries to explain explain the
>>> quirks involved, and recommend using "make" to reconcile the problem.
>>> This is confusing, inconsistent, and inflexible. Containers should all
>>> be either real reference types(classes) or real value types(structs).
>>>
>>
>> It's just another one of those major issues heavily ingrained in D that
>> will never be fixed at the language level.
>
> My thinking is that significant work in this(this) is poor D style.
> Eager copying for containers doesn't seem like the best way to go. --
> Andrei

@disable this(this) for ephemeral containers?


More information about the Digitalmars-d mailing list