mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-27 17:11:40 +00:00
remove internalNew from system (#23475)
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
(a, b) = (1, 2, 3, 4)
|
(a, b) = (1, 2, 3, 4)
|
||||||
```
|
```
|
||||||
will no longer compile.
|
will no longer compile.
|
||||||
|
- `internalNew` is removed from system, use `new` instead.
|
||||||
|
|
||||||
## Standard library additions and changes
|
## Standard library additions and changes
|
||||||
|
|
||||||
|
|||||||
@@ -125,9 +125,6 @@ proc unsafeAddr*[T](x: T): ptr T {.magic: "Addr", noSideEffect.} =
|
|||||||
|
|
||||||
const ThisIsSystem = true
|
const ThisIsSystem = true
|
||||||
|
|
||||||
proc internalNew*[T](a: var ref T) {.magic: "New", noSideEffect.}
|
|
||||||
## Leaked implementation detail. Do not use.
|
|
||||||
|
|
||||||
proc new*[T](a: var ref T, finalizer: proc (x: ref T) {.nimcall.}) {.
|
proc new*[T](a: var ref T, finalizer: proc (x: ref T) {.nimcall.}) {.
|
||||||
magic: "NewFinalize", noSideEffect.}
|
magic: "NewFinalize", noSideEffect.}
|
||||||
## Creates a new object of type `T` and returns a safe (traced)
|
## Creates a new object of type `T` and returns a safe (traced)
|
||||||
|
|||||||
Reference in New Issue
Block a user