Vadim O. Ustiansky <[EMAIL PROTECTED]> writes:
>
>So my question is whether it is possible to completely hide
>C internals from perl level.
More or less.
If you associate the C pointer with the object by using MAGIC
then it is very hard for perl code to get at it.
(The B:: stuff can probably stil
On Mon, 2004-03-01 at 09:38, Vadim O. Ustiansky wrote:
> If, as you said, you store a pointer to the C struct somewhere in an SV, the
> raw memory address becomes available at the perl level. The perl programmer
> may simply change this value and your C code will not notice it. This just
> opens a
On Mon, Mar 01, 2004 at 11:38:56AM +0300 Vadim O. Ustiansky wrote:
> Dear Tassilo!
Hi!
> Thank you for your answer, but that is slightly not what I was asking for.
> Sorry if my first post was not enough clear.
>
> If, as you said, you store a pointer to the C struct somewhere in an SV, the
> r
Dear Tassilo!
Thank you for your answer, but that is slightly not what I was asking for.
Sorry if my first post was not enough clear.
If, as you said, you store a pointer to the C struct somewhere in an SV, the
raw memory address becomes available at the perl level. The perl programmer
may simpl
On Mon, Mar 01, 2004 at 02:19:53AM +0300 Vadim O. Ustiansky wrote:
> I am new to XS and have not found the solution to my
> problem in either docs or CPAN modules' sources so far.
>
> I want to implement a perl object as a hash reference
> but I want some functionality to be implemented in C
> wh
Dear list members!
I am new to XS and have not found the solution to my
problem in either docs or CPAN modules' sources so far.
I want to implement a perl object as a hash reference
but I want some functionality to be implemented in C
which requires to bind some C struct with this perl
object. T