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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.


-- 

Reply via email to