diff --git a/ChangeLog b/ChangeLog index 604daef2f8..89b2c823c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Feb 23 10:19:41 2009 Nobuyoshi Nakada + + * include/ruby/ruby.h (USE_SYMBOL_AS_METHOD_NAME): Module#methods, + #singleton_methods and so on return Symbols. [ruby-talk:328775] + Mon Feb 23 10:15:35 2009 Nobuyoshi Nakada * README.EXT, README.EXT.ja: added macros for the Compatibilities. diff --git a/README.EXT b/README.EXT index 17467477ce..6844947fc9 100644 --- a/README.EXT +++ b/README.EXT @@ -1276,6 +1276,11 @@ have_func("rb_reg_new_str", "ruby.h"). Means that type rb_io_t is provided. + USE_SYMBOL_AS_METHOD_NAME + +Means that Symbols will be returned as method names, e.g., +Module#methods, #singleton_methods and so on. + Appendix C. Functions Available in extconf.rb diff --git a/README.EXT.ja b/README.EXT.ja index 71ac60e6ac..42f35249c0 100644 --- a/README.EXT.ja +++ b/README.EXT.ja @@ -1376,6 +1376,12 @@ HAVE_RB_IO_T rb_io_t 型が提供されていることを意味する. +USE_SYMBOL_AS_METHOD_NAME + + メソッド名を返すメソッド,Module#methods, #singleton_methods + などがSymbolを返すことを意味する. + + Appendix C. extconf.rbで使える関数たち extconf.rbの中では利用可能なコンパイル条件チェックの関数は以 diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 1dcff00a6a..4f28b9d698 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -286,6 +286,9 @@ VALUE rb_ull2inum(unsigned LONG_LONG); #define ID2SYM(x) (((VALUE)(x)<