Issue #7047 has been updated by authorNari (Narihiro Nakamura).


kou (Kouhei Sutou) wrote:
> rb_obj_new()???????с??????????????
> rb_obj_???prefix???帥?????????障???????????????????????

????????????????????????障?????
??с??????????c???????????????????????膣????????????羂?????????障?????????
----------------------------------------
Feature #7047: Add new C API: rb_newobj_with
https://bugs.ruby-lang.org/issues/7047#change-29961

Author: authorNari (Narihiro Nakamura)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 2.0.0


nari??с?????

????CRuby??с??????吾?с????????蚊??綵??????????? rb_newobj() ?????????∽?違?????
??????????障????????綣???違??type???klass??????????????????????????T_STRING???????????????
?????????蚊??綵??????????劫?ャ???????????????ャ???????c?????障?????

????????т札筝????C API??菴?????????罅??????障?????

 * VALUE rb_newobj_with(VALUE, enum ruby_value_type);
 * #define NEWOBJ_WITH(obj,type,klass,flags)

ruby???????rb_newobj()???篏帥?c????????????????rb_newobj_with()??臀???????????????
?????????????障?????篋??????с?????????rb_newobj???NEWOBJ???OBJSETUP?????????????障??
??????絨???ョ??????????????????с????????????2.0??с??c??????????с?????

???????????篁ヤ???????????с?????
https://github.com/authorNari/ruby/compare/trunk...rb_newobj2.patch

??障?????rb_newobj_with???????????????????????????????鐚?rb_newobj2篁ュ??鐚????????????井??
????????????????????????????с?????



-- 
http://bugs.ruby-lang.org/