dmd does not allow anything larger. Shouldn't the limit depend on the .data segment size, which can be specified by the system? Is there a technical reason?

Observing that the limit is actually one less (note -1 below), it's probably due to an old limitation where indexes were limited to 24 bits?

static ubyte[16 * 1024 * 1024 - 1] arr;

Ali

Reply via email to