Wait, what? What is AliasSeq?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 7 17:01:16 PDT 2015


On 7/7/15 7:32 PM, Tofu Ninja wrote:
> On Tuesday, 7 July 2015 at 23:30:05 UTC, Andrei Alexandrescu wrote:
>> In fact thinking of it AliasArray seems most descriptive. -- Andrei
>
> I like this as well, but calling it an array might make people think you
> can assign to its elements.

Well it depends on the element type, e.g. you can't assign to slots of 
an array of immutable elements because you can't assign the individual 
types to start with. By extension you can't assign to elements of an 
array of aliases because you can't assign an alias to another to start 
wityh. -- Andrei


More information about the Digitalmars-d mailing list