What an interesting idea! +1 from me.

Cheers,
  - Andreas

Michael FIG wrote:
Hi, all...

In light of the recent discussions about math precedence, I've created
a patch to implement my suggestion.  Confronted with the following
code:

    2 + 3 * 8.

my modified idc aborts with:

bad.st:4: ambiguous arithmetic expression; use explicit parentheses near '*'

However, it compiles without warning for the following:

  2 + (3 * 8).
  3 * 8 + 2.
  (2 + 3) * 8.

There were a handful of .st files that relied on the st80-style
non-precedence, which I added explicit parentheses to.

If this patch (or something morally equivalent) is accepted to the
mainline, I believe we can finally close the precedence discussion.  I
hope. ;P

Have fun,


------------------------------------------------------------------------

_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc

_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc

Reply via email to