Hashes and Frozen Keys

Posted on August 21, 2009, under Coding.

The hash class freezes keys that are strings:

This can be a problem if you want to use those keys later on…more specifically, if you want to extract and edit those strings:

Unfortunately, those strings will have to be duped or cloned:

Share and Enjoy:
  • Twitter
  • Digg
  • Reddit
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Print

Leave a Comment