www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11488] New: FORTRAN "FORI=" Error

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11488

           Summary: FORTRAN "FORI=" Error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody puremagic.com
        ReportedBy: svv1999 hotmail.com



---
... may have reached D.

According to http://dlang.org/expression.html#UnaryExpression
both "--" and "-" are legal prefices and both can be chained.

This means that a statement like "x= --y;" stays legal when wrongly inserted
whitespace turns it into "x= - -y;".

This can be prevented when the alternative
  " - UnaryExpression"
is changed into
  " - PostfixExpression"
thereby disallowing to chain negation operators.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 09 2013
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11488


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com
           Severity|normal                      |enhancement


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 09 2013