From: MenTaLguY Date: 2007-01-20T03:09:17+09:00 Subject: Re: [ ruby-Bugs-7974 ] anonymous classes share single alloc function --=-NyT1ukQcQWmSXWJbxNVK Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2007-01-19 at 16:46 +0900, Nobuyoshi Nakada wrote: > rb_class_new() creates a Class instance merely, without corresponding > singleton class (or eigenclass), but rb_define_alloc_func() (and > rb_undef_alloc_func()) expect the given class has it. Thanks! I guess this means that calling rb_singleton_class() on the class before calling rb_define_alloc_func() would be an effective workaround? -mental --=-NyT1ukQcQWmSXWJbxNVK Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBFsQlJSuZBmZzm14ERAmCBAJ9M58BgBoLz7kwwxZ16wcFGNKzxGwCdEUQw j/ccsymI26XIlhSjRA4RFTQ= =pUkG -----END PGP SIGNATURE----- --=-NyT1ukQcQWmSXWJbxNVK--