3 ms·
I think that should be type refCounted[T] = object val: T refs: int You could try a destructor for the object: http://nim-lang.org/manual.html
by def- 12y ago
I think that should be
type refCounted[T] = object
val: T
refs: int
You could try a destructor for the object: http://nim-lang.org/manual.html#destructors http://nim-lang.org/manual.html#destructors