[sv-bc] Question re. new ++ and -- operators

From: Rishiyur S. Nikhil <nikhil@bluespec.com>
Date: Fri Mar 19 2004 - 14:31:40 PST

Can the new '++' and '--' operators be followed immediately by another
operator, without whitespace?

E.g., the example on page 65 (just before 7.4) is:

     j = i++ + (...)

Would it be legal to say this without the whitespaces?

     j = i+++(...)

Advantage of requiring whitespace: more readable, and allows future
addition of a '+++' operator without breaking existing code.

Nikhil
Received on Fri Mar 19 14:31:43 2004

This archive was generated by hypermail 2.1.8 : Fri Mar 19 2004 - 14:31:52 PST