* implements https://github.com/nim-lang/RFCs/issues/369 * deprecate unsafeAddr; extend addr addr is now available for all addressable locations, unsafeAddr is deprecated and become an alias for addr * follow @Vindaar's advice * change the signature of addr * unsafeAddr => addr (stdlib) * Update changelog.md * unsafeAddr => addr (tests) * Revert "unsafeAddr => addr (stdlib)" This reverts commit ab83c99c507048a8396e636bf22d55fdd84d7d1c. * doc changes; thanks to @konsumlamm Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * merge * remove * fix bug Co-authored-by: Araq <rumpf_a@web.de> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
This commit is contained in:
parent
207237cec2
commit
d6d36093b1
4 changed files with 42 additions and 41 deletions
|
|
@ -202,9 +202,6 @@ proc `addr`*[T](x: T): ptr T {.magic: "Addr", noSideEffect.} =
|
|||
##
|
||||
## Cannot be overloaded.
|
||||
##
|
||||
## See also:
|
||||
## * `unsafeAddr <#unsafeAddr,T>`_
|
||||
##
|
||||
## .. code-block:: Nim
|
||||
## var
|
||||
## buf: seq[char] = @['a','b','c']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue