Re: rb_struct_new example needed

From: matz@... (Yukihiro Matsumoto)
Date: 2004-04-30 23:58:41 UTC
List: ruby-core #2839
Hi,

In message "rb_struct_new example needed"
    on 04/04/30, jm <jm@transact.com.au> writes:

|So I was hoping someone could tell me if the following is valid, after 
|calling rb_struct_define with a list of cstrings,
|
|rb_vfr_obj = rb_struct_new(vflowrec, 0);
|
|and then to use rb_struct_aset() as above.

No.  You have to define members first by rb_struct_new() to use
rb_struct_aset().

|Any pointer in the right direction welcome.

Show us the whole code.

							matz.

In This Thread