Why 16Mib static array size limit?

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 17 07:38:49 PDT 2016


On Wednesday, 17 August 2016 at 14:21:32 UTC, Steven 
Schveighoffer wrote:
> void * is almost useless. In D you can assign a void[] from 
> another void[], but other than that, there's no way to write 
> the memory or read it.
>
> In C, void * is also allowed to alias any other pointer. But 
> char * is also allowed to provide arbitrary byte 
> reading/writing.
>
> I'd expect that D also would provide a similar option.
>
> -Steve

Yes, but everything can alias with void*/void[] . Thus, you can 
cast from void* to T* "safely".


More information about the Digitalmars-d mailing list