зеркало из https://github.com/github/ruby.git
object.c: deprecate Data
* object.c (InitVM_Object): Data is deprecated now. [Feature #3072] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
256c88861b
Коммит
684bdf6171
4
NEWS
4
NEWS
|
@ -27,6 +27,10 @@ with all sufficient information, see the ChangeLog file or Redmine
|
|||
* Array#append [Feature #12746]
|
||||
* Array#prepend [Feature #12746]
|
||||
|
||||
* Data
|
||||
|
||||
* Now deprecated [Feature #3072]
|
||||
|
||||
* Dir
|
||||
|
||||
* Dir.glob provides new optional keyword argument, :base.
|
||||
|
|
5
object.c
5
object.c
|
@ -4076,11 +4076,12 @@ InitVM_Object(void)
|
|||
/*
|
||||
* Document-class: Data
|
||||
*
|
||||
* This is a recommended base class for C extensions using Data_Make_Struct
|
||||
* or Data_Wrap_Struct, see doc/extension.rdoc for details.
|
||||
* This is a deprecated class, base class for C extensions using
|
||||
* Data_Make_Struct or Data_Wrap_Struct.
|
||||
*/
|
||||
rb_cData = rb_define_class("Data", rb_cObject);
|
||||
rb_undef_alloc_func(rb_cData);
|
||||
rb_deprecate_constant(rb_cObject, "Data");
|
||||
|
||||
rb_cTrueClass = rb_define_class("TrueClass", rb_cObject);
|
||||
rb_define_method(rb_cTrueClass, "to_s", true_to_s, 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче