From: Nobuyoshi Nakada Date: 2007-01-20T11:56:28+09:00 Subject: Re: [ ruby-Bugs-7974 ] anonymous classes share single alloc function Hi, At Sat, 20 Jan 2007 03:09:17 +0900, MenTaLguY wrote in [ruby-core:09968]: > > 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? Yes, it should make the code work. -- Nobu Nakada