www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 66] New: Post/Pre increment expressions don't work in lhs.

http://bugzilla.gdcproject.org/show_bug.cgi?id=66

             Bug #: 66
           Summary: Post/Pre increment expressions don't work in lhs.
    Classification: Unclassified
           Product: GDC
           Version: development
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw gdcproject.org
        ReportedBy: ibuclaw gdcproject.org


eg:

void main()
{
  int pos = 0;

  while (true)
    {
      ++pos -= 1;
      assert (pos == 0);
    }
}

or

void main()
{
  int pos = 0;

  while (true)
    {
      ++pos %= 4;
      assert (pos != 4);
    }
}

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
Jul 01 2013