Kris Thielemans
2015-08-27 15:58:28 UTC
Dear all
I've been trying to kill a few more errors when running the test-suite for
Matlab. One example that fails is voidtest. The reason for that is that
voidtest_runme.m (an almost-copy of the Octave version) uses the swig_this
function, which we currently don't have.
Looking at the Octave implementation, it says that swig_this "returns the
underlying C/C++ pointer of a SWIG-wrapped object". When checking
voidtest_runme.py, it corresponds to "object.this" in Python.
Now we (i.e. Joel!) can probably make such a function for the Matlab
version, but I don't understand why someone would need to have access to
this. It looks quite unsafe to me.
Can anyone clarify this?
Thanks
Kris
------------------------------------------------------------------------------
I've been trying to kill a few more errors when running the test-suite for
Matlab. One example that fails is voidtest. The reason for that is that
voidtest_runme.m (an almost-copy of the Octave version) uses the swig_this
function, which we currently don't have.
Looking at the Octave implementation, it says that swig_this "returns the
underlying C/C++ pointer of a SWIG-wrapped object". When checking
voidtest_runme.py, it corresponds to "object.this" in Python.
Now we (i.e. Joel!) can probably make such a function for the Matlab
version, but I don't understand why someone would need to have access to
this. It looks quite unsafe to me.
Can anyone clarify this?
Thanks
Kris
------------------------------------------------------------------------------