From: matz@... (Yukihiro Matsumoto) Date: 2003-03-25T13:03:53+09:00 Subject: Re: Writing a new method in C for a subclass Hi, In message "Re: Writing a new method in C for a subclass" on 03/03/25, David Landrith writes: |Unfortunately, I am using 1.6.8. How stable is 1.8? Fairly stable for daily matters. I'm always using 1.8.0 for my works. And you will see 1.8.0 final release on somewhere in April. If you need to stil to 1.6.x, you need to copy the function below to your extension. static VALUE ary_alloc(klass) VALUE klass; { NEWOBJ(ary, struct RArray); OBJSETUP(ary, klass, T_ARRAY); ary->len = 0; ary->ptr = 0; ary->aux.capa = 0; return (VALUE)ary; } then call ary_alloc(YourArraySubclass) to get an empty instance. matz.