Nested template arguments
XavierAP
n3minis-git at yahoo.es
Wed Aug 22 15:18:29 UTC 2018
On Wednesday, 22 August 2018 at 14:48:57 UTC, Alex wrote:
>
> Because it could be meant as the argument to some templates to
> the left. Like
> (foo!bar)!x
>
> Sure, it would be a coincidence, if both will work. However,
> templates are not something where you can simply imply the
> associative property, I think.
Of course there isn't an associative property... But I was
thinking that without brackets the parser could fall back to
whatever default "left to right" precedence, as would happen with
operators, which needn't be associative either.
More information about the Digitalmars-d-learn
mailing list