[Issue 2494] New: describe explicit casting of arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 6 11:17:14 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2494
Summary: describe explicit casting of arrays
Product: D
Version: 2.021
Platform: PC
URL: http://www.digitalmars.com/d/2.0/arrays.html
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: www.digitalmars.com
AssignedTo: bugzilla at digitalmars.com
ReportedBy: jlquinn at optonline.net
It's possible and necessary at times to cast arrays for systems work. For
example:
ubyte[] ba = readdata();
uint[] = cast(uint[])ba;
This isn't described and needs to be if it's supported in the language. I'm
assuming it's supported, because otherwise many things would be difficult.
Also, any limitations ala C++ aliasing rules need to be described.
--
More information about the Digitalmars-d-bugs
mailing list