summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/system.nim16
1 files changed, 3 insertions, 13 deletions
diff --git a/lib/system.nim b/lib/system.nim
index ed1a0077e..dd4670577 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -118,19 +118,9 @@ proc `addr`*[T](x: T): ptr T {.magic: "Addr", noSideEffect.} =
   ##   ```
   discard
 
-proc unsafeAddr*[T](x: T): ptr T {.magic: "Addr", noSideEffect,
-    deprecated: "'unsafeAddr' is a deprecated alias for 'addr'".} =
-  ## Builtin `addr` operator for taking the address of a memory
-  ## location.
-  ##
-  ## .. note:: This works for `let` variables or parameters
-  ##   for better interop with C. When you use it to write a wrapper
-  ##   for a C library and take the address of `let` variables or parameters,
-  ##   you should always check that the original library
-  ##   does never write to data behind the pointer that is returned from
-  ##   this procedure.
-  ##
-  ## Cannot be overloaded.
+proc unsafeAddr*[T](x: T): ptr T {.magic: "Addr", noSideEffect.} =
+  ## .. warning:: `unsafeAddr` is a deprecated alias for `addr`,
+  ##    use `addr` instead.
   discard
 
 
Araq <rumpf_a@web.de> 2013-11-25 13:04:11 +0100 next steps for FFI support' href='/ahoang/Nim/commit/compiler/nimrod.cfg?h=devel&id=9035d15ed22de1f80486d94ec63e720a4d04cbc0'>9035d15ed ^
73c6efdf6 ^
4dae4fafe ^

73c6efdf6 ^
cf7e83ecc ^
bf557a7cd ^
0032912d1 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21