Re: rb_struct_new example needed

From: jm <jm@...>
Date: 2004-05-02 23:21:27 UTC
List: ruby-core #2841
Bashes head against keyboard. Doumo arigatou. That was it. It now runs 
smoothly. By the end of today you should be about to say ruby has yet 
another module.

Jeff.

On 01/05/2004, at 9:58 AM, Yukihiro Matsumoto wrote:

> 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

Prev Next