November 24 [Issue 24876] New: Undocumented cast from slice to static array | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24876 Issue ID: 24876 Summary: Undocumented cast from slice to static array Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dlang.org Assignee: nobody@puremagic.com Reporter: nick@geany.org 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. -- |
Copyright © 1999-2021 by the D Language Foundation