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
.
Comment on
Re^2: tied handle in xs
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.
[reply]
[d/l]
Re^4: tied handle in xs
by
Anonymous Monk
on Oct 03, 2008 at 07:45 UTC
It should work, so spacepille must be omitting something.
[reply]
In Section
Seekers of Perl Wisdom