Persistent list

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 16 10:55:56 PST 2015


On 11/16/15 1:37 PM, Andrei Alexandrescu wrote:
> On 11/16/2015 12:51 PM, Steven Schveighoffer wrote:
>>      List tail() const
>
> I'd like tail to be qualifier-idempotent, i.e. return const for const
> and non-const for non-const. -- Andrei

Why? const(int)[] isn't const, why should List!(const(int)) be?

-Steve


More information about the Digitalmars-d mailing list