www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17928] New: [scope] `in` is not treated as `const scope`

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

          Issue ID: 17928
           Summary: [scope] `in` is not treated as `const scope`
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

This behavior is contrary to the documented specs and also does not match how
almost the whole community uses `in`.

https://dlang.org/spec/function.html#parameters

--
Oct 22 2017