https://issues.dlang.org/show_bug.cgi?id=15704
Steven Schveighoffer <schvei...@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schvei...@yahoo.com --- Comment #3 from Steven Schveighoffer <schvei...@yahoo.com> --- (In reply to hsteoh from comment #2) > It's not just writing to void[] that's the problem. Consider: > > ---- > int[] intArr = [ 1,2,3,4,5 ]; > void[] voidArr = intArr; // OK, every array converts to void[] > int*[] ptrArr; > ptrArr.length = 5; > ptrArr[] = voidArr[]; // reinterpret intArr as pointers Wait, does this really work (I didn't think it did)? If so, isn't it still implicitly doing this: (cast(void[])ptrArr)[] = voidArr[]; Which is still writing void data. --