The doc for nb_setval(+Name,+Value)
states that a copy of value is made and associated with Name
. When a second call is made to overwrite the first copy of Value
, is that (no longer referenced) copy garbage collected?
Sure. Otherwise it wouldn’t be much use, no?
True. I was unexpectedly running out of heap but I think I’ve traced that down to heavy use of library(gensym)
; things working better now.