diff options
author | Ruslan Mustakov <endragor@users.noreply.github.com> | 2017-02-13 19:38:30 +0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-02-13 13:38:30 +0100 |
commit | 92665e6e9a74995bd108da5bf3668e2c09c8d79c (patch) | |
tree | 01c9634b0bfc0b996767db769043f97e25001956 /web/news | |
parent | 6fa1dba515e514ea9a4ac5850b0188fb6cf95fbf (diff) | |
download | Nim-92665e6e9a74995bd108da5bf3668e2c09c8d79c.tar.gz |
Add hash proc for cstrings (#5386)
Diffstat (limited to 'web/news')
-rw-r--r-- | web/news/e031_version_0_16_2.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/news/e031_version_0_16_2.rst b/web/news/e031_version_0_16_2.rst index 5ee40b772..2d725028e 100644 --- a/web/news/e031_version_0_16_2.rst +++ b/web/news/e031_version_0_16_2.rst @@ -18,7 +18,11 @@ Changes affecting backwards compatibility - The IO routines now raise ``EOFError`` for the "end of file" condition. ``EOFError`` is a subtype of ``IOError`` and so it's easier to distinguish between "error during read" and "error due to EOF". - +- A hash procedure has been added for ``cstring`` type in ``hashes`` module. + Previously, hash of a ``cstring`` would be calculated as a hash of the + pointer. Now the hash is calculated from the contents of the string, assuming + ``cstring`` is a null-terminated string. Equal ``string``s and ``cstring``s + produce equal hash value. Library Additions ----------------- |