Collections question

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun Nov 29 07:06:49 PST 2015


On 11/29/15 5:06 AM, Atila Neves wrote:
> On Friday, 27 November 2015 at 20:14:21 UTC, Andrei Alexandrescu wrote:
>> There's this oddity of built-in hash tables: a reference to a
>> non-empty hash table can be copied and then both references refer to
>> the same hash table object. However, if the hash table is null,
>> copying the reference won't track the same object later on.
>>
>> [...]
>
> static opCAll is just confusing IMHO. Factory function please.

Thanks all. I'll go with the factory function. -- Andrei




More information about the Digitalmars-d mailing list