WIP: nothing works
This commit is contained in:
parent
700448f359
commit
abe0725ab1
3 changed files with 39 additions and 12 deletions
|
|
@ -46,7 +46,7 @@ template frees(s) =
|
|||
s.p.region.dealloc(s.p.region, s.p, contentSize(s.p.cap))
|
||||
|
||||
proc `=destroy`(s: var string) =
|
||||
var a = cast[ptr NimStringV2[T]](addr s)
|
||||
var a = cast[ptr NimStringV2](addr s)
|
||||
frees(a)
|
||||
a.len = 0
|
||||
a.p = nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue