www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19852] New: value.[args] evaluation to opSlice.[args] should

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 puremagic.com
          Reporter: ilyayaroshenko 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.

--
May 07 2019