Array operations
Andy Valencia
dont at spam.me
Sun May 4 13:32:33 UTC 2025
On Sunday, 4 May 2025 at 00:15:23 UTC, Jonathan M Davis wrote:
> That sounds like an ldc bug then. With dmd, your program gives
>
> [2, 2, 2, 2, 1, 1, 1, 1]
> [2, 2, 2, 2, 1, 1, 1, 1]
> core.exception.RangeError at q.d(13): Range violation
> ----------------
> ??:? onRangeError [0x29f6b6]
> ??:? _d_arrayboundsp [0x29f685]
> ??:? _Dmain [0x27c099]
Ah, you are right:
https://github.com/ldc-developers/ldc/issues/3793
dmd here give the RangeError also (as does gdc).
Thanks,
Andy
More information about the Digitalmars-d-learn
mailing list