Bug 18420 – string as an initializer should work in any place an immutable char array does

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-02-11T13:11:19Z
Last change time
2024-12-13T18:57:04Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Steven Schveighoffer
Moved to GitHub: dmd#19388 →

Comments

Comment #0 by schveiguy — 2018-02-11T13:11:19Z
e.g.: alias IC = immutable char; ubyte[3] x = [IC('a'), IC('b'), IC('c')]; // OK ubyte[3] y = "abc"; // Error
Comment #1 by robert.schadek — 2024-12-13T18:57:04Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19388 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB