www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22125] New: std.process.Config was changed to a struct but

https://issues.dlang.org/show_bug.cgi?id=22125

          Issue ID: 22125
           Summary: std.process.Config was changed to a struct but miss
                    operator overloads, leading to user code breakage.
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com

the following code reduced from `iz` breaks:

---
import std.process;

void main()
{
    Config c; 
    c |= Config.detached;
}  
---

with error

 /tmp/temp_7F65D79EC950.d:3:45: Error: `c` is not a scalar, it is a `Config`
all binary operators used for the bit fields operations should be supported, so `|`, `&`, `~`, `^` + their respective binary assign. --
Jul 14