Hi, At Fri, 30 Aug 2002 02:29:51 +0900, Matthias Veit wrote: > how is it possible to create a certain ruby object via the c-api? > For some base types there are methods in ruby.h ala rb_ary_new etc. > But how to create a Regexp object? You can use rb_reg_new(). Ex. const char *src = "^foo$"; rb_reg_new(src, strlen(src), RE_OPTION_IGNORECASE) > or a custom class object? rb_class_new_instance(). -- Nobu Nakada