digitalmars.D.bugs - [Issue 19852] New: value.[args] evaluation to opSlice.[args] should
- d-bugmail puremagic.com (19/19) May 07 2019 https://issues.dlang.org/show_bug.cgi?id=19852
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