Mirror of
forum.nim-lang.org
index
321 :: Weak references for types
[2013-12-17T03:28:41+01:00]
View Orginal
Varriount
(orginal)
[2013-12-17T03:28:41+01:00]
view original
Is there any current mechanism for weak references, or do we just use pointers?
gradha
(orginal)
[2013-12-17T11:39:15+01:00]
view original
Pointers with finalizers seems the way to go. You can play with
tests/gc/weakrefs.nim
.