Bug 19852 – value.[args] evaluation to opSlice.[args] should be removed

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-05-08T02:44:29Z
Last change time
2024-12-13T19:03:15Z
Assigned to
No Owner
Creator
Илья Ярошенко
Moved to GitHub: dmd#19562 →

Comments

Comment #0 by ilyayaroshenko — 2019-05-08T02:44:29Z
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.
Comment #1 by robert.schadek — 2024-12-13T19:03:15Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19562 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB