more progress on destructor based strings
This commit is contained in:
parent
5b59852406
commit
74bf316619
16 changed files with 279 additions and 244 deletions
|
|
@ -202,11 +202,6 @@ proc objectInit(dest: pointer, typ: PNimType) =
|
|||
|
||||
# ---------------------- assign zero -----------------------------------------
|
||||
|
||||
proc nimDestroyRange[T](r: T) {.compilerProc.} =
|
||||
# internal proc used for destroying sequences and arrays
|
||||
mixin `=destroy`
|
||||
for i in countup(0, r.len - 1): `=destroy`(r[i])
|
||||
|
||||
proc genericReset(dest: pointer, mt: PNimType) {.compilerProc, benign.}
|
||||
proc genericResetAux(dest: pointer, n: ptr TNimNode) =
|
||||
var d = cast[ByteAddress](dest)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue