Grammar question. TypeSuffix - what is [ AssignExpression .. AssignExpression ] production for?

Nick Treleaven nick at geany.org
Thu Sep 5 19:32:52 UTC 2024


On Thursday, 5 September 2024 at 14:22:56 UTC, Quirin Schroll 
wrote:
> In fact, it was me who named it TypeSuffix; before, it was 
> BasicType2X

Thanks!

> StaticArray:
>     [ AssignExpression ]

A type sequence can be indexed, so calling it StaticArray would 
be confusing.

...
> I think it’s best to leave some of the grammar to prose and 
> explain what things mean in the section below the formal 
> grammar box.

+1



More information about the Digitalmars-d mailing list