[C ext 2 Ruby] questions about rb_iv_set/get

i do have some questions about rb_iv_set/get in order to know if i must
** OR NOT ** free mem allocation relevant to VALUEs passed to rb_iv_set
?

are only pointers stored ore copies of strings ?

···

--
une bévue

i do have some questions about rb_iv_set/get in order to know if i must
** OR NOT ** free mem allocation relevant to VALUEs passed to rb_iv_set
?

are only pointers stored ore copies of strings ?

I'm afraid I can't help you with your question, but I can help you get
more answers. It's a simple thing, just don't post with the broken
[EXTRA TAGS THAT MAKE YOUR SUBJECT HARD TO READ] subject
line.

···

On 8/31/06, Une bévue <pere.noel@laponie.com.invalid> wrote:

--
une bévue

--
thanks,
-pate
-------------------------

Une bévue wrote:

i do have some questions about rb_iv_set/get in order to know if i must
** OR NOT ** free mem allocation relevant to VALUEs passed to rb_iv_set
?

are only pointers stored ore copies of strings ?
  

Assuming you're using one of the rb_str_new family of functions to create Ruby String objects from C strings, Ruby makes a copy of the C string in Ruby-managed memory. In general Ruby objects are always in Ruby-managed memory unless you're wrapping one of your own C structures into a Ruby object with Data_Wrap_Struct.

ok, fine, thanks, for this precise answer !

···

Timothy Hunter <TimHunter@nc.rr.com> wrote:

Assuming you're using one of the rb_str_new family of functions to
create Ruby String objects from C strings, Ruby makes a copy of the C
string in Ruby-managed memory. In general Ruby objects are always in
Ruby-managed memory unless you're wrapping one of your own C structures
into a Ruby object with Data_Wrap_Struct.

--
une bévue

what are those exactly ? the "[C ext 2 Ruby]" : for my point of view it
is to advert people this thread speaks about "C ext 2 Ruby", not all are
interested...

or, is it for the "/" of "rb_iv_set/get" ???

···

pat eyler <pat.eyler@gmail.com> wrote:

I can help you get
more answers. It's a simple thing, just don't post with the broken
[EXTRA TAGS THAT MAKE YOUR SUBJECT HARD TO READ] subject
line.

--
une bévue