converting a byte array to a struct array?

Trass3r mrmocool at gmx.de
Sat Jan 2 16:18:38 PST 2010


grauzone schrieb:
> Second, the bug: casting arrays at compiletime seems to behave 
> differently from casting at runtime. Casting at compiletime doesn't 
> reinterpret cast, it does conversion! Demonstration here: 
> http://codepad.org/OGjXADdu
> 
> Feel free to file some bug reports.

Just found out this is stated as a feature in the docs.
http://www.digitalmars.com/d/2.0/expression.html#ArrayLiteral

http://codepad.org/bvk63OPw


More information about the Digitalmars-d-learn mailing list