std/byaddr => std/decls (#13847)
This commit is contained in:
parent
7d17cd34b8
commit
d23371fdd7
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import std/byaddr
|
||||
import std/decls
|
||||
|
||||
block:
|
||||
var s = @[10,11,12]
|
||||
Loading…
Add table
Add a link
Reference in a new issue