* Steve Fink:

> I'm not saying that this is necessarily a good idea, but I became
> similarly annoyed with some of the built-in typemaps. In my case, it
> was AV* and HV*, which leak memory by default unless you do stuff that
> is not needed with SV* returns. This is known, and documented, but
> unfixable because of backwards compatibility.

Could you post the snippet?  I'd like to use that as well.

> I don't need backwards compatibility for my own stuff, and my custom
> typemap is only used for my stuff, so I overrode T_AV and T_HV. It
> seems to be happy taking the last definition it finds. You could do
> the same with T_PV.

Oh, in other cases, the definedness check is quite convenient.

-- 
Florian Weimer                <[EMAIL PROTECTED]>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

Reply via email to