WIP: nothing works

This commit is contained in:
Andreas Rumpf 2018-08-05 09:38:14 +02:00
commit abe0725ab1
3 changed files with 39 additions and 12 deletions

View file

@ -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