summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-10-15 10:54:20 +0200
committerAraq <rumpf_a@web.de>2018-10-15 10:54:20 +0200
commit8252c65cf2501b8d6401e7d8295df374ef6b1994 (patch)
treee7cf92bf041cc53c22531f8d592f32d78fd59bf2 /lib
parent37986d0ba8d83b76e710b352a7da7cce2a5cb157 (diff)
downloadNim-8252c65cf2501b8d6401e7d8295df374ef6b1994.tar.gz
system.nim deprecate 'getRefcount'; refs #2839, refs #3713
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 449307af9..469f5cebe 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2015,9 +2015,12 @@ proc `$`*[Enum: enum](x: Enum): string {.magic: "EnumToStr", noSideEffect.}
   ## used instead. (In other words: *Overwriting* is possible.)
 
 # undocumented:
-proc getRefcount*[T](x: ref T): int {.importc: "getRefcount", noSideEffect.}
-proc getRefcount*(x: string): int {.importc: "getRefcount", noSideEffect.}
-proc getRefcount*[T](x: seq[T]): int {.importc: "getRefcount", noSideEffect.}
+proc getRefcount*[T](x: ref T): int {.importc: "getRefcount", noSideEffect,
+  deprecated: "the refcount never was reliable, the GC does not use traditional refcounting".}
+proc getRefcount*(x: string): int {.importc: "getRefcount", noSideEffect,
+  deprecated: "the refcount never was reliable, the GC does not use traditional refcounting".}
+proc getRefcount*[T](x: seq[T]): int {.importc: "getRefcount", noSideEffect,
+  deprecated: "the refcount never was reliable, the GC does not use traditional refcounting".}
   ## retrieves the reference count of an heap-allocated object. The
   ## value is implementation-dependent.