diff options
author | Araq <rumpf_a@web.de> | 2015-07-18 20:41:45 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-07-18 20:41:45 +0200 |
commit | caf7717cb8904dcdbb72b9b3a7b6dece01ed5768 (patch) | |
tree | 630dfd413702b70c8d4dab33c2ed6ee8f04a43c4 | |
parent | 6b001609384876e4421e3550ba91770fd2e2b52e (diff) | |
download | Nim-caf7717cb8904dcdbb72b9b3a7b6dece01ed5768.tar.gz |
removed system.free
-rw-r--r-- | lib/system.nim | 3 | ||||
-rw-r--r-- | web/news.txt | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim index f8a4f7fcf..c5b0e0cc7 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -1509,8 +1509,7 @@ when not defined(nimrodVM): ## or other memory may be corrupted. ## The freed memory must belong to its allocating thread! ## Use `deallocShared` to deallocate from a shared heap. - proc free*[T](p: ptr T) {.inline, benign.} = - dealloc(p) + proc allocShared*(size: Natural): pointer {.noconv, rtl, benign.} ## allocates a new memory block on the shared heap with at ## least ``size`` bytes. The block has to be freed with diff --git a/web/news.txt b/web/news.txt index cdb503ef6..a5bc600b9 100644 --- a/web/news.txt +++ b/web/news.txt @@ -40,6 +40,8 @@ News ``varargs[expr]`` instead. The same applies to ``varargs[typed]`` vs ``varargs[stmt]``. - ``sequtils.delete`` doesn't take confusing default arguments anymore. + - ``system.free`` was an error-prone alias to ``system.dealloc`` and has + been removed. Library additions |