[Issue 15384] assignment is sometimes still accepted as a condition
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Mon Nov 30 18:37:29 PST 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15384
Infiltrator <lt.infiltrator at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lt.infiltrator at gmail.com
--- Comment #1 from Infiltrator <lt.infiltrator at gmail.com> ---
I assume that this has to do with the way in which the comma operator works. 
The compiler then sees it not as two assignments, but the output of the comma
operator (which is just a value).  Not sure how difficult it would be to get
the compiler to track down into a comma operator, since you can do arbitrary
work inside it.
--
    
    
More information about the Digitalmars-d-bugs
mailing list