Skip to content

Commit

Permalink
remove internalNew from system (#23475)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Apr 4, 2024
1 parent 14e79b7 commit e4522dc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions lib/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e4522dc

Please sign in to comment.