Re: Hiding C internals

2004-03-01 Thread Nick Ing-Simmons
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

Re: Hiding C internals

2004-03-01 Thread Torsten Schoenfeld
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

Re: Hiding C internals

2004-03-01 Thread Tassilo von Parseval
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

Re: Hiding C internals

2004-03-01 Thread Vadim O. Ustiansky
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

Re: Hiding C internals

2004-02-29 Thread Tassilo von Parseval
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

Hiding C internals

2004-02-29 Thread Vadim O. Ustiansky
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