Tidy template instantiation syntax

so so at so.do
Wed Dec 1 05:53:06 PST 2010


> 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/


More information about the Digitalmars-d mailing list