Today I wrote
void
DESTROY(r)
regexp *r
and found that it inserted
delete THIS;
Note that my code did not even sleep close to C++, so both delete (and
whitespace) and THIS are undefined.
Is this a desired behaviour? I expected just
DESTROY(r);
Ilya
P.S. I had
#define DESTROY regfree
at the start, and
regexp * T_PTROBJ
in typemap. I think the described behaviour is not bad for _some_ T_*,
but not for T_PTROBJ.
void
DESTROY(r)
regexp *r
and found that it inserted
delete THIS;
Note that my code did not even sleep close to C++, so both delete (and
whitespace) and THIS are undefined.
Is this a desired behaviour? I expected just
DESTROY(r);
Ilya
P.S. I had
#define DESTROY regfree
at the start, and
regexp * T_PTROBJ
in typemap. I think the described behaviour is not bad for _some_ T_*,
but not for T_PTROBJ.