Comment Comment by adgjlsfhk1 Julia solves this pretty well by having a gc_preserve macro that tells the compiler that an object has hidden references within the scope. parent adgjlsfhk1 2 years ago