Accessing RCPs from Julia (programming language) (was "Only using non-owning RCPs")
Created by: barche
Continuation from the mailing list discussion: https://trilinos.org/pipermail/trilinos-users/2016-December/005744.html
@bartlettroscoe Thanks for the reply. I see now that my approach would require keeping all Trilinos objects that are created from Julia safe from garbage collection, which in Julia means they must always be referenced by a variable. This seems like an unreasonable burden on the user, so I'll default to constructing owning RCPs whenever a Trilinos object is allocated. Passing the RCP to Julia requires keeping a pointer to it, so that would mean heap-allocating the RCP and deleting it in the finalizer.