Bug 24876 – Undocumented cast from slice to static array

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2024-11-24T18:40:57Z
Last change time
2024-11-24T19:04:06Z
Keywords
pull
Assigned to
No Owner
Creator
Nick Treleaven

Comments

Comment #0 by nick — 2024-11-24T18:40:57Z
E.g.: void f(int[] b) { char[4] a; a = cast(char[4]) b[0..1]; // OK const i = 1; a = cast(char[4]) b[i..2]; // OK } PR incoming.
Comment #1 by dlang-bot — 2024-11-24T18:43:38Z
@ntrel created dlang/dlang.org pull request #3927 "Fix Bugzilla 24876 - Undocumented cast from slice to static array" fixing this issue: - Fix Bugzilla 24876 - Undocumented cast from slice to static array https://github.com/dlang/dlang.org/pull/3927
Comment #2 by dlang-bot — 2024-11-24T19:04:06Z
dlang/dlang.org pull request #3927 "Fix Bugzilla 24876 - Undocumented cast from slice to static array" was merged into master: - d39f7c837d7c86bf408905d01dc539ccfe24ff1a by Nick Treleaven: Fix Bugzilla 24876 - Undocumented cast from slice to static array https://github.com/dlang/dlang.org/pull/3927