Defining array constant


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.


On Aug 6, 2006, at 9:00 AM, [email protected] wrote:


Look at README.EXT. Specifically rb_ary_new and friends.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs