fixes #1286; object case transitions are now sound
This commit is contained in:
parent
247fa431de
commit
49e686ab4e
14 changed files with 123 additions and 166 deletions
|
|
@ -266,8 +266,6 @@ proc new*[T](a: var ref T, finalizer: proc (x: ref T) {.nimcall.}) {.
|
|||
|
||||
proc reset*[T](obj: var T) {.magic: "Reset", noSideEffect.}
|
||||
## Resets an object `obj` to its initial (binary zero) value.
|
||||
##
|
||||
## This needs to be called before any possible `object branch transition`:idx:.
|
||||
|
||||
proc wasMoved*[T](obj: var T) {.magic: "WasMoved", noSideEffect.} =
|
||||
## Resets an object `obj` to its initial (binary zero) value to signify
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue