mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Add link to new ref
item
This commit is contained in:
parent
d6149fdf0f
commit
74a18b0953
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ Keywords `auto` and `ref` must be adjacent
|
|||
|
||||
It's now deprecated to declare `auto ref` parameters without putting those two keywords next to each other.
|
||||
This way it's clear that `auto ref` semantics are intended, rather than `ref` and `auto` semantics separately.
|
||||
For the newly introduced `ref` local / global variables, it's an error immediately.
|
||||
For the newly introduced $(RELATIVE_LINK2 dmd.reflocal, `ref` local / global variables), it's an error immediately.
|
||||
|
||||
---
|
||||
void t()(ref const auto int x) // Deprecation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue