newruntime: progress
This commit is contained in:
parent
fda1352ccf
commit
c3067e36bb
12 changed files with 57 additions and 46 deletions
|
|
@ -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``.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue