newruntime: progress

This commit is contained in:
Araq 2019-04-01 16:51:18 +02:00
commit c3067e36bb
12 changed files with 57 additions and 46 deletions

View file

@ -1638,6 +1638,8 @@ when defined(nimV2) and not defined(nimscript):
new(r)
return r
else:
template owned*(t: typeDesc): typedesc = t
proc new*[T](a: var ref T) {.magic: "New", noSideEffect.}
## Creates a new object of type ``T`` and returns a safe (traced)
## reference to it in ``a``.