std/byaddr => std/decls (#13847)

This commit is contained in:
Timothee Cour
2020-04-03 00:03:13 -07:00
committed by GitHub
parent 7d17cd34b8
commit d23371fdd7
3 changed files with 3 additions and 3 deletions

View File

@@ -149,9 +149,9 @@ echo f
versions. The documentation was improved to acknowledge this special case.
See https://github.com/nim-lang/RFCs/issues/175 for more details.
- New syntax for lvalue references: `var b {.byaddr.} = expr` enabled by
`import std/byaddr`.
`import std/decls`.
- `var a {.foo.}: MyType = expr` now lowers to `foo(a, MyType, expr)` for
non-builtin pragmas, enabling things like lvalue references (see `pragmas.byaddr`).
non-builtin pragmas, enabling things like lvalue references (see `decls.byaddr`).
## Compiler changes

View File

@@ -1,4 +1,4 @@
import std/byaddr
import std/decls
block:
var s = @[10,11,12]