[Issue 19852] New: value.[args] evaluation to opSlice.[args] should be removed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 8 02:44:29 UTC 2019


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

          Issue ID: 19852
           Summary: value.[args] evaluation to opSlice.[args] should be
                    removed
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ilyayaroshenko at gmail.com

value.[args] should evaluates to value.opIndex(args) according to the spec.
opSlice is very old behavior.

Currently, the compiler tries first to evaluate to opIndex, and if it fails, to
opSlice. The problem is complitely useless error messages.

--


More information about the Digitalmars-d-bugs mailing list