STIR
STIR copied to clipboard
SWIG still generates a lot of members called *_sptr
As sptr
and ptr
don't make sense in Python/MATLAB, we rename quite a few members, mostly get*sptr()
with SWIG. There's still a lot of set*sptr
around sadly.
Can we rename these and keep the old version for a while for backwards compatibility?
@markus-jehl do you know?
I didn't see a way to rename while keeping the original name as well. However, there seems to be the potential for an elegant way to strip "_sptr" from all function names: see the third example in https://www.swig.org/Doc2.0/SWIG.html#SWIG_advanced_renaming.