problems with DPL example.

Justin Whear justin at economicmodeling.com
Mon Oct 10 11:13:43 PDT 2011


You need to create an immutable copy of word before using it as a key. That 
is, replace this line:

>       dictionary[word] = newID;

with
   dictionary[word.idup] = newID;



More information about the Digitalmars-d-learn mailing list