Named template constraints
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Apr 22 11:35:58 PDT 2014
On Tue, 22 Apr 2014 11:36:07 -0400, monarch_dodra <monarchdodra at gmail.com>
wrote:
> On Tuesday, 22 April 2014 at 15:30:36 UTC, Steven Schveighoffer wrote:
>> Also, an immutable can be initialized that way:
>>
>> immutable int[] = int[].init;
>
> Isn't that exactly "R.init" ?
Yes, you said if it's an immutable it would fail to compile. I think this
is not true.
-Steve
More information about the Digitalmars-d-learn
mailing list