From: Eric Hodel Date: 2006-12-08T08:04:06+09:00 Subject: Re: Ruby enums in C On Dec 7, 2006, at 14:59 , Joe Van Dyk wrote: > Each instance of Joe has a MOOD which can be HAPPY, SAD, or NEUTRAL. > > The Joe class is written in C. In C, what's the appropriate way for > setting MOOD to one of the appropriate values? rb_iv_set(joe, "@mood", rb_intern("sad")); -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net I LIT YOUR GEM ON FIRE!