diff --git a/changelog.md b/changelog.md index e26e984e60..82736d09a1 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/lib/system.nim b/lib/system.nim index 9b556d008c..e34538a893 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -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)