Okay, I'm getting myself in a twist with inline, and I wondered if you lot
could help.
I have some accessor methods in my Inline class that take things in like
so (as based on the Solider example) :
void set_foo(SV* obj, char* string)
and stores the pointer to the string in the struct. Now, since I
don't know any XS, and my C is pretty rusty, here's my question: What's
that actually a pointer to? Is it a pointer directly to the same thing
the PV of the SV points to?...and if so when the SV goes away (though
garbage collection,) is it entirely possible that that string will that
string points to will vanish and hence I'll be left with a pointer in my
struct pointing instead to some random chunk of memory?
Or have I just lost the ability to program C, and am I barking up the
wrong ally.
Confused of London.
Mark.
--
s'' Mark Fowler London.pm Bath.pm
http://www.twoshortplanks.com/ [EMAIL PROTECTED]
';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/ +/
){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}