New to D

Daniel Kozak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Oct 22 01:05:12 PDT 2016


Dne 22.10.2016 v 07:41 Mark via Digitalmars-d-learn napsal(a):

> Thanks for the fast reply.
>
> That did work. But now the error is on the line:
>
>          dictionary[word] = newId;
>
> I changed the value to 10, still errors. ??
>
>
> everything else is as before.
>
> thanks.
uint[string] dictionary;
should be
uint[size_t] dictionary;

because size_t is 32bit on x86 system and 64bit on x86_64
and you are trying to put array length to dictionary which is size_t


More information about the Digitalmars-d-learn mailing list