mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 06:18:51 +00:00
std/byaddr => std/decls (#13847)
This commit is contained in:
@@ -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]
|
||||
Reference in New Issue
Block a user