Bug 10476 – Allow array operations with implicit casts

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-26T09:08:49Z
Last change time
2024-12-13T18:08:34Z
Assigned to
No Owner
Creator
Ryuichi OHORI
Moved to GitHub: dmd#17595 →

Comments

Comment #0 by r.97all — 2013-06-26T09:08:49Z
import std.stdio; void main() { int[] a; a.length = 3; uint[] b; b.length = 3; a[] += b[]; // Error: incompatible types for ((a[]) += (b[])): 'int[]' and 'uint[]' } issue 2434 states that we need a way to add _explicit_ casts into arary operation. IMO implicit casts are more frequently used and important.
Comment #1 by yebblies — 2013-11-21T07:36:32Z
*** Issue 10152 has been marked as a duplicate of this issue. ***
Comment #2 by robert.schadek — 2024-12-13T18:08:34Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17595 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB