in reply to Re: tied handle in xs
in thread tied handle in xs

I have no experience working with tied objects in XS, but I imagine it would be similar to whatever the perl core does.
There's better ways, perlXStut: EXAMPLE 9 Passing open files to XSes.

Replies are listed 'Best First'.
Re^3: tied handle in xs
by plobsing (Friar) on Oct 03, 2008 at 06:44 UTC
    I've read that. It suggests using typemaps for PerlIO objects (my first resort).

    However, looking at the T_IN and T_INOUT typemaps, they both do $var = IoIFP(sv_2io($arg)).

    That apparently isn't working for spacepille. So I looked for other options.
      It should work, so spacepille must be omitting something.