I do not agree with this position. I actually find *p+1 undecidable. Would like the compiler enforcing proper parenthesizing in all such ambiguous cases.

By the way, there has been a study about operator precedence in C-like languages. It shows very common errors by _experienced_ programmers even in plain expressions (no incolving special cases like pointer ref/deref). This study also shows the proportion of lines of codes involving more that one operator is tiny. An implicit conclusion, for me, is to remove operator precedence. I do not ask for this, indeed, in D, just comment.

By saying that you find "*p + 1" is undecidable, you already said "remove operator precedence".
It is quite the opposite and quite clear by the definition.
There are corner cases on operator precedence, this one is not one of them.

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

Reply via email to