From: gotoken@... (GOTO Kentaro) Date: 1999-07-18T09:27:47+09:00 Subject: [ruby-talk:00504] Re: One question about classes written in C. In message "[ruby-talk:00502] One question about classes written in C." on 99/07/16, Clemens.Hintze@bln.sel.alcatel.de writes: > Is it true, that this kind of class implementation is only forseen > for builtin classes, not for classes defined via C-written extension? I think so. If the use of magic numbers like T_POINT is allowed in user's extensions, they seem to be going to clash sooner or later because one could not know its value without looking the source code. So, Data_Make_Struct() or Data_Wrap_Struct() should be used, or essentially rb_data_object_alloc(). -- gotoken PS >Reply-To: c.hintze@gmx.net ?? I ignored the Reply-To, this time ;-)