A small Jai library for making it easy to share pointers/references to the same data, while making it easy to get rid of the pointer/reference when it is no longer needed.
You just create a variable using with the Ref(T)
type, where you replace T
with your type. For example Ref(int)
.
Then you initialize it with init(*ref_variable)
where ref_variable
is your variable,