GC.@preserve macro equivalent for v0.6.2


#1

I’ve been looking all over, and I can’t find any equivalent to the GC.@preserve macro that is in master.
Do I just need to make some form of “no-op” macro to make things work on v0.6.2 (I don’t want to give up supporting that until v0.7/v1.0 is released, even though it is a bit of a hassle), or is there some equivalent?


#2

See https://github.com/JuliaLang/Compat.jl/pull/491, which proposes the no-op solution but is controversial.


#3

Thanks! I hadn’t seen that discussion. Since I’m really just trying to keep it alive for testing on v0.6, not to make it really be robust on v0.6, but I do want it robust with the more aggressive GC on master, I think I’ll just go with a no-op on v0.6.