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


???????????????????????????????????
rb_newobj_with(klass, VALUE flags) ?????????????修正?????????????

https://github.com/authorNari/ruby/compare/trunk...rb_newobj2

flags????????????????enum ruby_value_type?????????????????????????????
????????????????????????


???????????????????????????????????????????????????????????????????????????

* rb_type_new (???????????)
* rb_typed_newobj (????????????????)
* rb_newobj_with_setup
* rb_new_segregated_obj
* rb_new_distinct_obj
* rb_new_typed_obj
* rb_gc_newobj

?????????????????????????????????????????????????????
?rb_newobj?????????????????????????????????????????

???? rb_new_typed_obj ????????????好?????????

----------------------------------------
Feature #7047: Add new C API: rb_newobj_with
https://bugs.ruby-lang.org/issues/7047#change-29755

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


nari???????

????CRuby?????????????????????????????? rb_newobj() ???????????????
???????????????????????type???klass??????????????????????????T_STRING???????????????
??????????????????????????????????????????????????????

????????以????C API??追????????????????????

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

ruby???????rb_newobj()???使?????????????????rb_newobj_with()??置???????????????
?????????????????????????????????rb_newobj???NEWOBJ???OBJSETUP???????????????
???????????????????????????????????????2.0???????????????????

???????????以????????????????
https://github.com/authorNari/ruby/compare/trunk...rb_newobj2.patch

???????rb_newobj_with????????????????????????????????rb_newobj2以????????????????
?????????????????????????????????



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