From: Nobuyoshi Nakada Date: 2007-07-04T15:30:16+09:00 Subject: Re: Data_Wrap_Struct for T_CLASS Hi, At Wed, 4 Jul 2007 14:21:09 +0900, Verestiuc Vlad Ovidiu wrote in [ruby-core:11593]: > I need to keep some information about some states for a class. This > information is encapsulated into a C structure. I was thinking if there > is any way to something like Data_Wrap_Struct for instance to classes. Data_Wrap_Struct is specific to T_DATA, but can not be applied to T_CLASS at all. It causes the crash. > I have to mention that I need that information to be available soon after I > create the class, so using rb_define_alloc_func it's not an option > since is called when the that class is instantiated. Class variables? -- Nobu Nakada