Confusing "Error: only one index allowed to index [...]"

Neia Neutuladh neia at ikeran.org
Thu Jan 3 01:31:31 UTC 2019


On Wed, 02 Jan 2019 20:20:12 +0000, Bastiaan Veelo wrote:
> What I find misleading is "only one index allowed" because `[1][1]` are
> two indices and clearly allowed.

int[3][3] only allows one index. The value this yields is an int[3], which 
in turn only allows one index. But that's cutting hairs pretty fine.


More information about the Digitalmars-d mailing list