[Issue 594] New: can't cast arrayliteral statically
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 25 03:29:37 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=594
Summary: can't cast arrayliteral statically
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: lovesyao at hotmail.com
void main(){
const char[] t="abcd";
const ubyte[] t2=cast(ubyte[])t;//ok
const char[] t3=['a','b','c','d'];
const ubyte[] t4=cast(ubyte[])t3;//error
}
--
More information about the Digitalmars-d-bugs
mailing list