[Issue 22125] New: std.process.Config was changed to a struct but miss operator overloads, leading to user code breakage.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 14 20:48:35 UTC 2021


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 at puremagic.com
          Reporter: b2.temp at 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.

--


More information about the Digitalmars-d-bugs mailing list