Logan Capaldo
8/6/2006 1:15:00 PM
On Aug 6, 2006, at 9:00 AM, yue_nicholas@hotmail.com wrote:
> Hi,
>
> I need to define two constant of array type, what is the recommended
> way to do that?
>
> rb_define_const(module, "MASK", ...mask value...is float[4][4]);
> rb_define_const(module, "LIGHTTINT", ...color value...is float[3]);
>
> I have seen example for string and integer but not for arrays.
>
> Cheers
>
>
Look at README.EXT. Specifically rb_ary_new and friends.