remove internalNew from system (#23475)

This commit is contained in:
ringabout
2024-04-04 18:53:30 +08:00
committed by GitHub
parent 14e79b79bc
commit e4522dc87f
2 changed files with 1 additions and 3 deletions

View File

@@ -13,6 +13,7 @@
(a, b) = (1, 2, 3, 4)
```
will no longer compile.
- `internalNew` is removed from system, use `new` instead.
## Standard library additions and changes

View File

@@ -125,9 +125,6 @@ proc unsafeAddr*[T](x: T): ptr T {.magic: "Addr", noSideEffect.} =
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.}) {.
magic: "NewFinalize", noSideEffect.}
## Creates a new object of type `T` and returns a safe (traced)