Somewhere in our internal GMP wrapper, we keep getting this warning:
Warning: A custom '=destroy' hook which takes a 'var T' parameter is deprecated; it should take a 'T' parameter [Deprecated]
The code triggering it: https://github.com/arturo-lang/arturo/blob/master/src/helpers/bignums.nim#L95
And the finalizeInt implementation: https://github.com/arturo-lang/arturo/blob/master/src/extras/gmp.nim#L801-L802
Any idea what is going on here exactly and/or how we could solve it?
Hi,
I'm updating a package that has
new(result, freeConnection)
and the same warning
How should I replace the line to no longer have the warning?
Thanks
@ggibson
sorry if I mention you again but I don't understand how I should replace this code:
proc freeConnection*(con: ODBCConnection) =
con.disconnect
if con.envHandle != nil:
freeEnvHandle(con.envHandle, con.reporting)
to have destroy hooks.