New to D

Daniel Kozak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 23 13:15:44 PDT 2016


Dne 22.10.2016 v 11:04 Mike Parker via Digitalmars-d-learn napsal(a):

> On Saturday, 22 October 2016 at 08:05:12 UTC, Daniel Kozak wrote:
>
>> 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
>
> I believe you meant:
>
> size_t[string];
Yes :)


More information about the Digitalmars-d-learn mailing list