Nick Sabalausky: > In D2, I can treat a uint as an array of ubytes by doing this: > > uint num = /+...whatever...+/; > ubyte[] = cast(ubyte[4])num; > > How do I do that in D1?
Using a union is probably the safest way: union Uint2Ubyte { uint u; ubyte[4] b; } By the way, this of type conversions is a shady area in D. Bye, bearophile