Thread overview
[Issue 6704] New: CommaExpression as an IfCondition
Sep 21, 2011
Kasumi Hanazuki
Jan 21, 2012
Walter Bright
September 21, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6704

           Summary: CommaExpression as an IfCondition
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: k.hanazuki@gmail.com


--- Comment #0 from Kasumi Hanazuki <k.hanazuki@gmail.com> 2011-09-20 23:12:02 PDT ---
The following code is valid according to the spec but rejected by dmd with the
error:
  test.d(3): if (v; e) is deprecated, use if (auto v = e)

Tested with DMD v2.055

----

void main() {
  int a;
  if(a, true) { }
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6704



--- Comment #1 from github-bugzilla@puremagic.com 2012-01-21 00:17:09 PST ---
Commit pushed to https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5aa2b7af90b9625f4ed8c8bde8d43ff6c44760d1 fix Issue 6704 - CommaExpression as an IfCondition

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6704


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


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