Deprecate any (#16920)
This commit is contained in:
parent
4576cf20af
commit
68ef0c6c5b
3 changed files with 3 additions and 2 deletions
|
|
@ -115,6 +115,8 @@ with other backends. see #9125. Use `-d:nimLegacyJsRound` for previous behavior.
|
||||||
added `prepend` and `prependMoved` analogously to `add` and `addMoved`;
|
added `prepend` and `prependMoved` analogously to `add` and `addMoved`;
|
||||||
added `remove` for `SinglyLinkedList`s.
|
added `remove` for `SinglyLinkedList`s.
|
||||||
|
|
||||||
|
- Deprecated `any`. See https://github.com/nim-lang/RFCs/issues/281
|
||||||
|
|
||||||
|
|
||||||
- Added optional `options` argument to `copyFile`, `copyFileToDir`, and
|
- Added optional `options` argument to `copyFile`, `copyFileToDir`, and
|
||||||
`copyFileWithPermissions`. By default, on non-Windows OSes, symlinks are
|
`copyFileWithPermissions`. By default, on non-Windows OSes, symlinks are
|
||||||
|
|
|
||||||
|
|
@ -4803,7 +4803,6 @@ type class matches
|
||||||
``set`` any set type
|
``set`` any set type
|
||||||
``seq`` any seq type
|
``seq`` any seq type
|
||||||
``auto`` any type
|
``auto`` any type
|
||||||
``any`` distinct auto (see below)
|
|
||||||
================== ===================================================
|
================== ===================================================
|
||||||
|
|
||||||
Furthermore, every generic type automatically creates a type class of the same
|
Furthermore, every generic type automatically creates a type class of the same
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ type
|
||||||
|
|
||||||
void* {.magic: "VoidType".} ## Meta type to denote the absence of any type.
|
void* {.magic: "VoidType".} ## Meta type to denote the absence of any type.
|
||||||
auto* {.magic: Expr.} ## Meta type for automatic type determination.
|
auto* {.magic: Expr.} ## Meta type for automatic type determination.
|
||||||
any* = distinct auto ## Meta type for any supported type.
|
any* {.deprecated: "Deprecated since v1.5; Use auto instead.".} = distinct auto ## Deprecated; Use `auto` instead. See https://github.com/nim-lang/RFCs/issues/281
|
||||||
untyped* {.magic: Expr.} ## Meta type to denote an expression that
|
untyped* {.magic: Expr.} ## Meta type to denote an expression that
|
||||||
## is not resolved (for templates).
|
## is not resolved (for templates).
|
||||||
typed* {.magic: Stmt.} ## Meta type to denote an expression that
|
typed* {.magic: Stmt.} ## Meta type to denote an expression that
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue