From: Logan Capaldo Date: 2006-08-06T22:14:53+09:00 Subject: Re: Defining array constant 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.