What are (were) the most difficult parts of D?

Tejas notrealemail at gmail.com
Thu May 12 15:30:28 UTC 2022


On Thursday, 12 May 2022 at 15:18:34 UTC, jmh530 wrote:
> On Thursday, 12 May 2022 at 12:13:32 UTC, Basile B. wrote:
>> [snip]
>> ```
>> is ( Type : TypeSpecialization , TemplateParameterList )
>> is ( Type == TypeSpecialization , TemplateParameterList )
>> is ( Type Identifier : TypeSpecialization , 
>> TemplateParameterList )
>> is ( Type Identifier == TypeSpecialization , 
>> TemplateParameterList )
>> ```
>>
>> I never remember those variants, because basically you never 
>> need them...
>> They were required for std.traits and that's it.
>
> What's the difference between a Type and Type Identifier?

`int`, `char` and friends are `Type`

In `int a`, `string c`, `a` and `c` are `Identifier`s


More information about the Digitalmars-d-learn mailing list