STIR icon indicating copy to clipboard operation
STIR copied to clipboard

SWIG still generates a lot of members called *_sptr

Open KrisThielemans opened this issue 2 years ago • 1 comments

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?

KrisThielemans avatar Apr 12 '22 22:04 KrisThielemans

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.

markus-jehl avatar Apr 14 '22 07:04 markus-jehl