So in such cases I'd like D to require parentheses, so this becomes a syntax error:
Foo!int* x;

And you need to write:
Foo!(int*)

or:
Foo!(int)*

This avoids a possible source of confusion.

The relative enhancement request:
http://d.puremagic.com/issues/show_bug.cgi?id=5286

Bye,
bearophile

Like many else, i also have encountered the C case in the report.
It was always my own fault forgetting operator precedence and still using it without parentheses.
Would that make the well defined operator precedence a bad thing?

--
Using Opera's revolutionary email client: http://www.opera.com/mail/

Reply via email to