24.02.2012 21:34, simendsjo пишет:
Generally, you should not cast a struct to pointer and vise-versa. Besides, size of array structure is larger than size of pointer, and that triggers error in your case.char[] a; auto b = cast(void*)a;auto c = cast(char[])b; // Error: e2ir: cannot cast b of type void* to type char[]